What would happen say it went off in space ? So it can’t actually be shot down
It takes very specific set of conditions for a nuclear bomb to go off, so they can be shot down without detonating. That's why countries like the US invest so much in things like this and why the development of hypersonic nuclear weapons is so big - in theory they go too fast to be shot down.