It would depend. Is this a terrorist group that detonated/launched(
) a nuclear device, or was this an act of war from a different country?
While I personally think the latter wouldn't happen because no country, even NK is stupid enough to do that right now, the answer is no. If we get "nuked" by a terrorist org, then we'll probably track them down and kill them without immediately dropping nukes on their host/origin countries.