KABUL, Afghanistan — A service member with the American-led coalition in Afghanistan was killed Wednesday during an attack in the eastern city of Jalalabad.

It is the second death of a coalition service member since the beginning of 2015, when the combat mission of the American-led coalition was declared over.

The attack occurred near the compound of the provincial governor after a senior American diplomat had concluded a meeting with Afghan officials from Nangarhar Province, of which Jalalabad is the capital, and surrounding provinces. The Afghan authorities in Jalalabad said the Afghan soldier opened fire on a group of American soldiers. A Western official in Afghanistan, speaking on the condition of anonymity, confirmed that the service member who died in the attack was an American.