KANDAHAR, Afghanistan -- An Afghan soldier opened fire Sunday inside a base in the southern Helmand province, wounding three U.S. soldiers before being shot dead.

Navy Cpt. Bill Salvin, a U.S. military spokesman, said coalition forces had killed the soldier “to end the attack,” but Col. Mohammad Rasoul Zazai, an Afghan army spokesman, said the soldier had made a “mistake” and had not fired deliberately.

Several U.S. troops have been killed in Afghanistan in recent years in so-called insider attacks carried out by Afghan police or soldiers. In October, an Afghan man in a military uniform shot dead a U.S. soldier and an American civilian contractor inside a military base in Kabul before being killed.

Elsewhere in Afghanistan, Taliban insurgents attacked a district headquarters in the Kandahar province using a suicide car bomb, said Samim Khpolwak, a spokesman for the governor. He declined to say how many people were killed or wounded.

Get Breaking News Delivered to Your Inbox

A security official, who spoke on condition of anonymity because he was not authorized to release information, said six police were killed and five others were wounded in the assault, which was claimed by the Taliban.

In the southern Zabul province, an army operation killed 13 Taliban and wounded 11 others, said Gen. Sadiqullah Saberi. He said two Afghan soldiers were killed and three others were wounded by a roadside bomb during the operation.

Two Taliban commanders were killed in an apparent U.S. drone strike in the Barmal district of the eastern Paktika province, said Mohammad Rahman Ayaz, spokesman for the provincial governor. Another 10 insurgents were killed in a separate drone strike in the Dand-e Patan district of neighboring Paktia province, said Gov. Zelmai Wessa.