Director of the National Counterterrorism Center resigns