A NATO statement said another US service member and two US civilians were wounded in the attack and were in a stable condition.
"Anytime we lose a member of our team, it is deeply painful," the statement quoted General John W Nicholson, Commander of US Forces-Afghanistan. "Our sympathies go out to the families, loved ones, and the units of those involved in this incident."
Dawlat Waziri, spokesman for the Afghan defense ministry, said the attack took place inside a military base in the capital. The ministry had launched an investigation on the incident, he added.
The NATO statement said the attacker was later killed. The victims were conducting duties as part of the larger NATO mission to train and advise the Afghan security services, and an investigation was being conducted to determine the exact circumstances of the incident.
In May, two Romanian soldiers were shot and killed when two Afghan army recruits opened fire on them in southern Kandahar province. Both attackers were later killed by other troops in a military comp.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)