Editor's note: A correction has been appended to this article after officials said a military contractor, previously identified as having been killed, was alive.

A car bomb outside of Afghanistan's Bagram Airfield on Monday killed three U.S. service members, and wounded three other American service members, officials said.

The injured personnel were evacuated and receiving medical care, the NATO-led Resolute Support mission said in a statement.

The Taliban claimed responsibility for the attack.

The attack occurred amid peace talks between the Trump administration and the Taliban, an extremist Islamic movement that ruled Afghanistan until they were ousted by a U.S.-led coalition following the Sept. 11, 2001, terror attacks. The Taliban now operate as an insurgent force with control over large swaths of the country.

The United States is seeking to wind down its 17-year-old war in Afghanistan and withdraw the roughly 14,000 American troops deployed there.

It isn’t clear how much progress has been made. Talks with the group concluded last month with no agreement to end the war, and a top Afghan official, Hamdullah Mohib, offered a scathing critique of the Trump administration’s handling of those talks.

Mohib, who is Afghan President Ashraf Ghani's national security adviser, claimed that Kabul’s government had been shut out of negotiations and “sold out” by Trump’s envoy for reconciliation.

State Department officials dismissed his criticism, saying the U.S. remains in close contact with Ghani and other senior officials.

The Trump administration later demanded an apology from Mohib, who refused.

CORRECTION (April 9, 2019, 11:15 a.m.): An earlier version of this article contained incorrect information from U.S. officials about the status of the contractor. U.S. officials originally said the contractor had been killed, but on Tuesday said that the contractor, an Afghan citizen, was alive and had been treated for his injuries.