It's not NSA vs CIA, but this article from 2016 describes the Pentagon vs CIA in Syria:
"Syrian militias armed by different parts of the U.S. war machine have begun to fight each other on the plains between the besieged city of Aleppo and the Turkish border, highlighting how little control U.S. intelligence officers and military planners have over the groups they have financed and trained in the bitter five-year-old civil war.
The fighting has intensified over the last two months, as CIA-armed units and Pentagon-armed ones have repeatedly shot at each other while maneuvering through contested territory on the northern outskirts of Aleppo, U.S. officials and rebel leaders have confirmed.
"It is an enormous challenge," said Rep. Adam Schiff (D-Burbank), the top Democrat on the House Intelligence Committee, who described the clashes between U.S.-supported groups as "a fairly new phenomenon."
"It is part of the three-dimensional chess that is the Syrian battlefield," he said.
"While the Pentagon's actions are part of an overt effort by the U.S. and its allies against Islamic State, the CIA's backing of militias is part of a separate covert U.S. effort aimed at keeping pressure on the Assad government in hopes of prodding the Syrian leader to the negotiating table."
latimes.com/world/middleeast/la-fg-cia-pentagon-isis-20160327-story.html