A group of villagers in northwestern Afghanistan used a machine gun, sticks and stones to kill two Taliban militants and chase 10 others away on Thursday, a provincial police chief said.

The confrontation between the Taliban and villagers in the northwestern province of Faryab occurred after militants tried to abduct aid workers building a well in Qayar district on Wednesday, said Khalil Andarabi.

The villagers confronted the Taliban, and after a brief altercation, shot at them, killing two and forcing the rest to flee, he said.

The bodies of the dead militants, including the Taliban-appointed shadow governor for the province, were still with the villagers, Andarabi said.

In areas where there is a Taliban presence, the militants appoint representatives to carry out administrative jobs such as tax collection and resolving disputes using traditional methods.

Villagers rarely attack Taliban in the region, and the authorities have moved additional troops into the area to prevent any Taliban retaliation, Andarabi said.

"According to our culture, when the people invited the aid workers to dig a well, they cannot allow the Taliban to kidnap and behead them," Andarabi said. "They were guests, and we never give up our guests."

That same day, the NATO-led force announced that its troops in central Logar province killed a suspected Taliban militant believed to have been involved in planning suicide bombings.

The coalition said it shot Mohammed Daud Rahimi, whom it accused of identifying targets for suicide bombers in Kabul and helping them into the city.

A woman and a man were wounded during the raid on Wednesday, it said. The woman was released after being treated. Two men were detained for questioning.

Separately on Thursday, A roadside bomb killed two NATO soldiers and wounded a third in the eastern province of Paktika Thursday. NATO did not release the nationalities of the soldiers, but most troops in Paktika are American.

More than 2,100 people — mostly militants — have been killed in insurgency-related violence in Afghanistan this year. More than 8,000 people died in attacks last year, according to the United Nations, the most since the 2001 U.S.-led invasion.