Top counterterrorism official resigns in protest of US war against Iran