Updated

Four American service members were killed Sunday after a man in an Afghan police officer uniform turned his gun and started firing at a remote checkpoint in southern Afghanistan, a U.S. official tells Fox News.

Afghan officials said the checkpoint in Zabul province's Mizan district came under attack first from insurgents sometime around midnight. American forces came to help the Afghan police respond to the attack, said Ghulam Gilani, the deputy police chief of the province.

It was not clear if some of the Afghan police turned on their American helpers in the middle of the battle with the insurgents, or afterward, or were somehow forced into attacking the American troops by the insurgents, Gilani said.

"The checkpoint was attacked last night. Then the police started fighting with the Americans. Whether they attacked the Americans willingly we don't know," Gilani said.

Details of the attack were slow to come out because it took place in a remote area, said Graybeal, the NATO forces spokesman.

"The attack took place in the vicinity of an outpost in southern Afghanistan. It is my understanding that it was a checkpoint," Graybeal said. International forces often work with Afghan police to man checkpoints as part of the effort to train and mentor the Afghan forces so that they can eventually operate on their own. The goal is to turn over all security responsibility for the country to the Afghans by the end of 2014, though numbers of NATO forces have already been reduced in many areas.

Graybeal said one police officer was killed in the clash but that the other officers at the site fled and it was unclear if they were involved in the attack or not.

Taliban spokesman Qari Yousef Ahmadi said the police who attacked were not affiliated with the Taliban insurgency.

"But they are Afghans and they know that Americans are our enemy," Ahmadi told The Associated Press. In an emailed statement, he said the police who fled have joined up with the insurgency.

The coalition said in a statement that they were investigating what happened.

So far this year, 51 international service members have died at the hands of Afghan soldiers or policemen or insurgents wearing their uniforms. At least 12 such attacks came in August alone, leaving 15 dead.

The checkpoint attack was the third attack by Afghan forces or insurgents disguised in military uniforms against international forces in as many days, killing eight troops in all.

Recent months have seen a string of such insider attacks by Afghan forces against their international counterparts. The killings have imperiled the military partnership between Kabul and NATO, a working relationship that is key to the handover of security responsibilities to Afghan forces as international troops draw down.

Meanwhile, according to Afghan officials, airstrikes by NATO planes killed eight women and girls in another remote part of the country, fueling a long-standing grievance against a tactic used by international forces that Afghans say causes excessive civilian casualties.

Villagers from a remote part of Laghman province's Alingar district drove the bodies to the provincial capital, claiming they were killed by NATO aircraft while they were out gathering firewood before dawn.

"They were shouting 'Death to America!' They were condemning the attack," said Laghman provincial government spokesman Sarhadi Zewak.

Four bodies, covered in blankets, were seen by an Associated Press journalist at the governor's office in the provincial capital, Mehterlam.

Seven injured females were also brought to area hospitals for treatment, some of them as young as 10 years old, said provincial health director Latif Qayumi.

NATO forces said that the strike killed a large number of insurgents — as many as 45 — but may have also killed civilians.

There may have been five to eight Afghan civilians killed in the strike, said Capt. Dan Einert, a spokesman for international forces in Afghanistan. He said they were still investigating the report.

"Protecting Afghan lives is the cornerstone of our mission and it saddens us when we learn that our action might have unintentionally harmed civilians," said Jamie Graybeal, another spokesman for the international military in Afghanistan.

Afghan President Hamid Karzai "strongly condemns the airstrike by NATO forces which resulted in the deaths of eight women," a statement from his office said. It said the Afghan government was also investigating.

On Saturday, a gunman in the uniform of a government-backed militia force shot dead two British soldiers in Helmand district in the southwest.

Britain's defense minister said the two soldiers, from 3rd Battalion the Yorkshire Regiment, were killed at a checkpoint shooting in Nahri Sarraj district of Helmand province in southern Afghanistan, where the Taliban have their strongest roots. NATO said earlier that the gunman was wearing a uniform used by the Afghan Local Police, a village-level fighting force overseen by the central government.

That strike came a day after insurgents wearing U.S. Army uniforms attacked a military base, killing two American Marines, wounding nine other people and destroying six Harrier fighter jets, military officials said. Fourteen insurgents were killed. The Taliban claimed responsibility for that attack and said that it was revenge for the video insulting Prophet Muhammad.

In the capital on Sunday, several hundred university students chanted "Death to America!" and "Long life to Islam!" over several hours to protest the video. Riot police cordoned off the area and the protest ended without incident in the early afternoon. A smaller protest went forward in the western city of Herat.

Fox News' Jennifer Griffin and the Associated Press contributed to this report.