The two U.S. service members killed in northern Afghanistan on Thursday were based at Fort Carson, 9NEWS sister station KOAA-TV reports.

They were on a mission with the Afghan military to clear a Taliban position and disrupt the group’s operations in the Kunduz district. The joint raid that involved NATO airstrikes also killed 26 civilians and three Afghan troops.
Investigators are working to determine what went wrong, the Associated Press reports.

The two soldiers belong to a Special Forces unit from Fort Carson, according to KOAA. They have been identified as Capt. Andrew Byers, 30, of Rolesville, North Carolian, and Sgt. 1st Class Ryan A. Gloyer, 34, of Greenville, Pennsylvania.

The raid targeted two senior Taliban commanders, who were killed in the fighting. Some of the 26 civilians who died were members of the Taliban fighters’ families.

President Barack Obama has said around 8,400 troops will stay in Afghanistan through the end of his presidency to train and advise Afghan forces, and support operations against terrorists.