It's already a crime to build a bomb, so it's a moot point.

Moot to anyone who died, but you'd still be charged with the crime of building a bomb and the crime of murder.

My point is even if it hadn't blown up you would've committed a crime anyway, whereas if you rig a phone to erase its own data upon entering a PIN and the PIN is not entered, you haven't committed a crime. The two situations are different enough not to be analogous.