http://www.bbc.co.uk/news/world-south-asia-13206560BBC's Quentin Sommerville: "These incidents have a huge impact on morale"
Continue reading the main story
Taliban Conflict
Facing the Taliban
Can Afghan forces step up?
Make-or-break year ahead
Who are the Taliban?
Eight US troops and a US contractor have been killed by an Afghan air force pilot at Kabul airport in an apparent argument, US officials say.
The incident took place at a facility used by the Afghan air force at about 1100 local time (0630 GMT), the Afghan defence ministry said.
The pilot was also killed in the exchange.
The incident is the deadliest of a number of recent attacks on foreigners by Afghan security personnel.
"We can confirm there was small-arms fire during this incident," said Nato-led International Security Assistance Force (Isaf) spokesman Maj Tim James.
Continue reading the main story
Analysis
Quentin Sommerville
BBC News, Kabul
There are nearly a quarter of a million Afghan security forces and 130,000 coalition troops. They fight together and die together, when facing the Taliban. The Afghan security forces have grown quickly, but given the numbers involved, it's still rare for an Afghan soldier to turn his gun on the men he serves with.
In the past two years, 42 foreign troops have died at the hands of Afghans they were mentoring, or Taliban dressed in police or army uniform.
These incidents resonate widely, and are bad for morale. American and British soldiers say that they must remain on their guard - that they can never fully trust the Afghan soldiers and police they serve with.
US officials said the eight Isaf troops and one foreign contractor were all American, AP news agency said.
Witnesses reported hearing sirens and seeing a heavy military presence near the facility, which generally has tight security.
A senior Afghan security official told the BBC the pilot's name was Gul Ahmad, and he came from the Tarakhel area of Kabul.
He was suffering from "mental illness", and either got into a fight with his foreign colleagues or planned the attack after being recruited by the Taliban, the official said.
A spokesman for the Afghan Air Corps, Col Bahader, told AP the shooting was in an operations room of the Afghan Air Corps.
"Suddenly, in the middle of the meeting, shooting started," Col Bahader said. "After the shooting started, we saw a number of Afghan army officers and soldiers running out of the building. Some were even throwing themselves out of the windows to get away."
The Taliban claimed responsibility for the incident in a text sent to AP but the authorities have not confirmed any insurgent activity.
President Hamid Karzai and senior Isaf commanders condemned the shooting.
The head of the Nato training mission in Afghanistan, Lieutenant General William Caldwell said the programme had "suffered a tragic loss from an attack, which occurred this morning, resulting in the deaths of nine coalition trainers".
Correspondents say rapid recruitment into the Afghan military has raised fears of Taliban infiltration into the police and army.
Continue reading the main story
Afghan attacks on foreign troops
27 April: Eight US troops and a contractor killed by Afghan pilot
4 April: Two Nato soldiers killed by man in Afghan police uniform
18 February: Three German troops killed by Afghan soldier
20 January: Italian soldiers killed by Afghan soldier
29 November 2010: Six US soldiers killed by man in police uniform
13 July 2010: Three Gurkhas shot dead by soldier
4 November 2010: Five British soldiers killed by Afghan colleague in Helmand
Nato's exit strategy for Afghanistan involves progressively handing over to the local security forces.
Until now the deadliest of the recent attacks on foreign troops was last November when an Afghan policeman killed six US soldiers.
And two Nato soldiers were shot dead by an Afghan border policeman in northern Faryab province on 4 April, local officials said.
The BBC's Quentin Sommerville in Kabul says foreign troops broadly but not totally trust their Afghan colleagues and feel they have to keep half an eye on them.
The attackers are sometimes actually members of the Afghan security forces, and sometimes insurgents impersonating servicemen.