A U.S. military investigation has cleared the U.S. forces of wrongdoing in fighting that left 33 civilians dead and 27 others wounded last year in Afghanistan's Kunduz province, saying that they acted in self-defense.

"To defend themselves and Afghan forces, U.S. forces returned fire in self-defense at Taliban who were using civilian houses as firing positions," according to the U.S. military report published Thursday.

The November firefight started when Afghan special operations forces and some U.S.military advisers entered the village of Boz in an attempt to capture Taliban leaders there. Taliban forces started firing at the troops from civilian buildings. As the joint forces began to take casualties, they called for U.S. aerial reinforcements.

The investigation concluded that the air assets "used the minimum amount of force required to neutralize the various threats from the civilian buildings and protect friendly forces."

The killed and wounded Afghan civilians are believed to have been inside the buildings as they were hit by airstrikes, though the reports states that "no civilians were seen or identified in the course of the battle." A Taliban ammunition cache exploded during the fighting, which may have also caused casualties, the report added.

Local Afghan officials say the U.S. military's count of the civilian toll is low, according to The Associated Press. "More than 50 people, including women and children, were killed in the Afghan and U.S. forces' attack in Buz-e Kandahari," Toryalia Kakar, a deputy provincial council member, told the wire service.

"After the raid, Kunduz residents carried over a dozen corpses of the dead, including children and family members of the Taliban fighters, toward a local governor's office in a show of rage," the AP added.

The U.S. military says two U.S. soldiers and three Afghan army soldiers were killed during the battle. Four U.S. soldiers and 11 Afghan army soldiers were wounded. More than two dozen Taliban members, including three of its leaders, were killed.

Copyright 2017 NPR. To see more, visit http://www.npr.org/.