I thought I had messed up the quest when I got to the end because
the blind gnome died straight away and didn't get to plant the bomb. But it turns out you can use Speak With Dead to get a self-destruct code from him.