Great idea. What could go wrong?
I wouldn't think much because America has safeguards on its nuclear warheads to prevent a nuclear explosion if things go wrong. I also proposed that the asteroid be hit after it passes by Earth so that any risk to Earth be zero from fragmentation of the astroid. If the explosion occurs on the correct side of the asteroid even if it fragments