It's been happening for me too. I got a replay I keep meaning to put in Mantis but haven't gotten around to. Basically the nuke explodes, raises AIP, and does nothing. It only happens when the enemy kills it (not when scrapped) and there are no anti-missile defense systems on the planets in question