Joe Kent says he resigned as director of the US National Counterterrorism Center over opposition to the war in Iran.