Highly sensitive U.S. military equipment used by U.S. Special Forces in Libya was stolen in several raids over the summer by groups likely affiliated with terrorist organizations, State Department sources told Fox News.

The theft of dozens of M4 rifles, night-vision technology, and lasers contributed to the decision to pull the 12-member Special Forces team from the country in August.

“This stuff is how we win wars. The enemy doesn’t have that,” one source said.

The overnight raids occurred at a military training post run by American Special Forces on the outskirts of Tripoli.

That U.S. team was funded by the Department of Defense Section 1208, which provides support to assist foreign counterterrorism forces in other countries.

Special Forces members were also involved in hunting down the suspects in the Benghazi attack a year ago that killed U.S. Ambassador Christopher Stevens and three other Americans.