Afghan security forces shot and killed three international troops on Monday, one of them an American, in two attacks. They were the latest in a rising number of attacks in which Afghan forces have turned their weapons on their foreign partners.

The killings reflect a spike in tensions between Afghan and international forces, that follow an American soldier's alleged massacre of Afghan civilians, the burning of Muslim holy books at a US base, and uncertainty about Afghanistan's fate as foreign troops prepare to pull out.

They also come at a time when international troops have stepped up training and mentoring of Afghan soldiers, police and government workers so that Afghans can take the lead and the foreign forces can go home. The success of that partnership is key to the US-led coalition's strategy to withdraw most foreign combat forces by the end of 2014.

US Marine General John Allen, the top commander of US and NATO forces in Afghanistan, told reporters at the Pentagon that these types of attacks are characteristic of any warfare involving insurgents.

"We experienced these in Iraq. We experienced them in Vietnam," Allen said. "On any occasion where you're dealing with an insurgency and where you're also growing an indigenous force … the enemy's going to do all that they can to disrupt both the counterinsurgency operations and the developing nation's security forces."

Since 2007, an estimated 80 Nato service members have been killed by Afghan security forces, according to a tally based on Pentagon figures released in February. More than 75% of the attacks have occurred in the past two years.

Sixteen Nato service members – 18% of the 84 foreign troops killed so far this year – have been shot and killed by Afghan soldiers and policemen or militants disguised in their uniforms.

In one incident on Monday, two British service members were killed by an Afghan soldier in front of the main gate of a joint civilian-military base in southern Afghanistan, the coalition said. Another Nato service member was shot and killed at a checkpoint in east Afghanistan by a man who was believed to be a member of a village-level fighting force the US is fostering in hopes of countering the Taliban insurgency. The Pentagon confirmed on Monday that the dead soldier was American but did not release further details.

Major Ian Lawrence, a British military spokesman for Task Force Helmand, said one of the British troops was a Royal Marine and the other was a soldier from the British Adjutant General's Corps. They were killed in front of the base in Lashkar Gah, the provincial capital of Helmand province.

The soldier, who had been in the Afghan national army for four years, arrived at the gate in an army vehicle, said Ghulam Farooq Parwani, deputy commander of the Afghan army in Helmand. He was able to get close to the British troops by claiming that he had been assigned to provide security for a delegation of government officials from Kabul who were visiting the base Monday, Parwani added.

"He got close to the foreign troops – three or four metres – and he opened fire," Parwani said. "Then the foreign troops killed him."

It is not the first time that Afghan security forces have killed their British counterparts. On 3 November 2009, a rogue Afghan policeman killed five British soldiers who had been advising Afghan police at a checkpoint in Helmand province.

Taliban spokesman Qari Yousef Ahmadi said the gunman was an Afghan soldier who was in close contact with insurgents and had notified the Taliban of his planned attack before carrying it out.

However, Wahid Muzhda, a former Taliban foreign ministry official and an analyst on issues related to the group, said the Taliban were not behind most of the latest killings.

"All these killings are not linked to the Taliban," Muzhda said. "The recent Qu'ran burnings and the shooting spree – the killing of children– are affecting the minds of the Afghan soldiers. They think the foreigners are looking out for their own interests. They think if the foreigners are coming here to defend Afghanistan, why are they killing children?"

The trust between the Afghan forces and their international mentors is being undermined, he said.

"How is the mentor supposed to teach if he is afraid of the Afghan soldiers? They have weapons. How can he relax?"

While they acknowledge that these type of attacks are on the rise, coalition officials say they must be viewed in context. They say there are about 100,000 coalition troops working side-by-side with more than 300,000 Afghan troops.

"In most cases, the relationship is very strong. They know each other well," Allen said. "We have taken steps necessary on our side to protect ourselves.

"On the Afghan side, they are doing the same thing. I mean, they're helping the troops to understand how to recognise radicalisation or the emergence of extremism in … individuals who may in fact be suspect."

Monday's attack came two weeks after a US soldier allegedly went on a pre-dawn shooting rampage in neighbouring Kandahar province, killing 17 Afghan civilians – four men, four women and nine children.

That incident followed the burning of Qu;rans at a US base north of Kabul last month. The US apologised for the burning, saying the Islamic texts were mistakenly sent to a rubbish pit. But the incident raised to a full boil what had been simmering animosity toward outsiders.

Deadly protests raged around the nation for six days – the most visible example of a deep-seated resentment bred by what Afghans view is a general lack of respect for their culture and religion.

During the protests, Afghan soldiers killed six American troops. Two were killed in Kandahar province, two in Nangarhar province in the east and the other two were found dead with shots to the back of the head inside the Interior Ministry in Kabul.