Top counterterrorism official resigns over Trump’s Iran war