"Depends on when it was set to go off. Nuclear bombs don’t detonate like most people think they do. They are actually fairly easy to stop from going off too. If I was presented with a nuclear bomb that was going to go off then blowing it up with conventional explosives would be a fast way to assure it didn’t have a nuclear detonation.
So say there was an Earth mass black hole. It would only be about 1.75cm in diameter. If u shot a nuclear bomb within 2,000km of that black hole the tidal forces would rip the nuclear bomb apart.
If u could shoot one at a super massive black hole then it would fall in and be fine as long as that black hole was not already accreting material. If it was then the accretion disk would probably destroy the bomb before it got to the event horizon."