Tensions spill over after counterterrorism chief quits with letter criticising rationale for the conflict