A U.S. service member was killed in Afghanistan, NATO said Friday — barely a week after two U.S. Army Green Berets were killed in combat. The brief statement from the NATO Resolute Support mission said the latest death occurred Thursday but provided no further details.

The service member's identity was being withheld until family could be notified.

The announcement came as negotiations between a U.S. envoy and the Taliban appear to be close to an agreement on ending America's longest war.

Get Breaking News Delivered to Your Inbox

More than 2,400 U.S. service members have died in Afghanistan since the U.S.-led invasion in late 2001 to topple the Taliban, whose government had harbored al-Qaeda leader Osama bin Laden. Al-Qaeda insurgents used Afghanistan as a base from which to plan the Sept. 11, 2001, attack on the United States.

The U.S. combat mission in Afghanistan formally ended in 2014, but air and other support continue for Afghan forces fighting the Taliban and an affiliate of the Islamic State group. Both extremist groups continue to carry out deadly attacks against civilians and military forces.

President Donald Trump has called it "ridiculous" that U.S. troops have been in Afghanistan for almost 18 years, but earlier this month he acknowledged that the country remains dangerous and "we have to have a presence" there.

The Taliban, who now control or hold sway over roughly half of the country and are at their strongest since their 2001 defeat, have demanded that all foreign forces leave.

The president on Thursday said the U.S. plans to withdraw more than 5,000 American troops from Afghanistan — bringing the level to 8,600 — and then will determine further drawdowns, but he offered no timetable.

The U.S. was "getting close" to making a deal with the Taliban, he told Fox News Radio's "The Brian Kilmeade Show," but added: "Who knows if it's going to happen."

A Taliban spokesman also has said a final agreement is near.