An Afghan security personnel keeps watch near the largest US military base in Bagram after an explosion on November 12. Four people were killed in an explosion inside the largest US military base in Afghanistan, NATO said, with local officials blaming a suicide attacker posing as a labourer for the major security breach.
SHAH MARAI/AFP/Getty Images
An Afghan security personnel keeps watch near the largest US military base in Bagram after an explosion on November 12. Four people were killed in an explosion inside the largest US military base in Afghanistan, NATO said, with local officials blaming a suicide attacker posing as a labourer for the major security breach.
Now playing
01:53
4 Americans killed in blast at US airfield
Alleged Taliban fighters and other militants stand handcuffed while being presented to the media at a police headquarters in Jalalabad on March 6, 2018. 
Afghan police said over 17 alleged Taliban militants including two Pakistani nationals were arrested during a five-week operation in Nangarhar province. / AFP PHOTO / NOORULLAH SHIRZADA        (Photo credit should read NOORULLAH SHIRZADA/AFP/Getty Images)
NOORULLAH SHIRZADA/AFP/AFP/Getty Images
Alleged Taliban fighters and other militants stand handcuffed while being presented to the media at a police headquarters in Jalalabad on March 6, 2018. Afghan police said over 17 alleged Taliban militants including two Pakistani nationals were arrested during a five-week operation in Nangarhar province. / AFP PHOTO / NOORULLAH SHIRZADA (Photo credit should read NOORULLAH SHIRZADA/AFP/Getty Images)
Now playing
01:21
The Taliban: How it began, and what it wants
CNN
Now playing
00:50
Pence: Proud of US troops in Afghanistan
Now playing
00:50
Trump on Afghanistan plan: 'Attack we will'
US President Donald Trump speaks during his address to the nation from Joint Base Myer-Henderson Hall in Arlington, Virginia, on August 21, 2017.
Trump said a rapid Afghan exit would leave 'vacuum' for terrorists. / AFP PHOTO / Nicholas Kamm        (Photo credit should read NICHOLAS KAMM/AFP/Getty Images)
NICHOLAS KAMM/AFP/Getty Images
US President Donald Trump speaks during his address to the nation from Joint Base Myer-Henderson Hall in Arlington, Virginia, on August 21, 2017. Trump said a rapid Afghan exit would leave 'vacuum' for terrorists. / AFP PHOTO / Nicholas Kamm (Photo credit should read NICHOLAS KAMM/AFP/Getty Images)
Now playing
02:08
The pillars of Trump's Afghanistan strategy
CAMP BLESSING, AFGHANISTAN - OCTOBER 22:  Artilerymen await coordinates before firing a 155mm Howlitzer on a Taliban position October 22, 2008 from Camp Blessing in the Kunar Province of eastern Afghanistan. Their unit, Charlie Battery, 3rd Battalion of the 321 Field Artilery, has fired more than 5,900 shells since it deployed to Afghanistan less than a year ago, making it the busiest artilery unit in the U.S. Army, according to to military officers. They most often fire in support of Army infantry units battling Taliban insurgents in the nearby Korengal Valley, site of some of the heaviest fighting in Afghanistan.  (Photo by John Moore/Getty Images)
John Moore/Getty Images
CAMP BLESSING, AFGHANISTAN - OCTOBER 22: Artilerymen await coordinates before firing a 155mm Howlitzer on a Taliban position October 22, 2008 from Camp Blessing in the Kunar Province of eastern Afghanistan. Their unit, Charlie Battery, 3rd Battalion of the 321 Field Artilery, has fired more than 5,900 shells since it deployed to Afghanistan less than a year ago, making it the busiest artilery unit in the U.S. Army, according to to military officers. They most often fire in support of Army infantry units battling Taliban insurgents in the nearby Korengal Valley, site of some of the heaviest fighting in Afghanistan. (Photo by John Moore/Getty Images)
Now playing
00:54
Trump: US in Afghanistan to kill terrorists
US President Donald Trump speaks during his address to the nation from Joint Base Myer-Henderson Hall in Arlington, Virginia, on August 21, 2017.
Trump warned Monday that a hasty exit from Afghanistan would create a "vacuum" that would benefit America's jihadist foes, in a major policy address on his strategy in the 16-year conflict. / AFP PHOTO / Nicholas Kamm        (Photo credit should read NICHOLAS KAMM/AFP/Getty Images)
NICHOLAS KAMM/AFP/Getty Images
US President Donald Trump speaks during his address to the nation from Joint Base Myer-Henderson Hall in Arlington, Virginia, on August 21, 2017. Trump warned Monday that a hasty exit from Afghanistan would create a "vacuum" that would benefit America's jihadist foes, in a major policy address on his strategy in the 16-year conflict. / AFP PHOTO / Nicholas Kamm (Photo credit should read NICHOLAS KAMM/AFP/Getty Images)
Now playing
00:42
Trump calls terrorists 'losers'
President Donald Trump speaks at Fort Myer in Arlington Va., Monday, Aug. 21, 2017, during a Presidential Address to the Nation about a strategy he believes will best position the U.S. to eventually declare victory in Afghanistan. (AP Photo/Carolyn Kaster)
Carolyn Kaster/AP
President Donald Trump speaks at Fort Myer in Arlington Va., Monday, Aug. 21, 2017, during a Presidential Address to the Nation about a strategy he believes will best position the U.S. to eventually declare victory in Afghanistan. (AP Photo/Carolyn Kaster)
Now playing
01:21
Trump: Our support is not a blank check
Now playing
00:45
Trump acknowledges flip-flop on Afghanistan
POOL
Now playing
01:04
Trump: Love for America requires love for all
president trump afghanistan war plan troop address_00003227.jpg
CNN
president trump afghanistan war plan troop address_00003227.jpg
Now playing
01:34
Trump: We produce a special class of heroes
US President Donald Trump walks by as reporters shout questions to him upon his arrival on the South Lawn at the White House on August 14, 2017 in Washington, DC. Later today President Trump will be meeting from Attorney General Jeff Sessions and FBI Director Christopher Wray regarding this weekendÕs events in Charlottesville, Virginia. (Mark Wilson/Getty Images)
Mark Wilson/Getty Images
US President Donald Trump walks by as reporters shout questions to him upon his arrival on the South Lawn at the White House on August 14, 2017 in Washington, DC. Later today President Trump will be meeting from Attorney General Jeff Sessions and FBI Director Christopher Wray regarding this weekendÕs events in Charlottesville, Virginia. (Mark Wilson/Getty Images)
Now playing
02:24
Will Trump send more troops to Afghanistan?
WASHINGTON, DC - JUNE 13:  U.S. Defense Secretary James Mattis testifies before the Senate Armed Services Committee during a hearing in the Dirksen Senate Office Building on Capitol Hill June 13, 2017 in Washington, DC. Mattis and other Pentagon leaders testified about the proposed FY2018 National Defense Authorization Budget Request.  (Photo by Chip Somodevilla/Getty Images)
Chip Somodevilla/Getty Images
WASHINGTON, DC - JUNE 13: U.S. Defense Secretary James Mattis testifies before the Senate Armed Services Committee during a hearing in the Dirksen Senate Office Building on Capitol Hill June 13, 2017 in Washington, DC. Mattis and other Pentagon leaders testified about the proposed FY2018 National Defense Authorization Budget Request. (Photo by Chip Somodevilla/Getty Images)
Now playing
01:25
Mattis: New Afghanistan strategy decided
Getty Images
Now playing
01:27
US troops in Afghanistan: A history (2017)
An injured man is transported after a car bomb attack in western Kabul, Afghanistan, on Monday, July 24.
WAKIL KOHSAR/AFP/Getty Images
An injured man is transported after a car bomb attack in western Kabul, Afghanistan, on Monday, July 24.
Now playing
00:46
Dozens killed in Kabul car bombing
CNN
Now playing
02:52
Marines remaining in Afghanistan face hardship

Story highlights

Two US service members and two US contractors were killed, defense chief says

Official: Suicide bomb vest detonated on sidewalk; Taliban claim responsibility

(CNN) —  

Four Americans were killed in an apparent suicide bomb attack early Saturday at Bagram Airfield, the largest US base in Afghanistan, US Defense Secretary Ash Carter said.

Two of those killed were service members, and two were contractors, he said, adding he was “deeply saddened” by the news.

The explosion also wounded 16 other US service members and one Polish soldier participating in the NATO mission, Carter said in a statement.

The Taliban claimed responsibility in a tweet praising the “strong attack” on Bagram Airfield.

In a statement, Taliban spokesman Zabihullah Mujahid said a suicide bomber had targeted “a sports ground where more than 100 military officers, important people and soldiers were busy exercising.”

The ancient city of Bagram is more than 30 miles north of the Afghan capital, Kabul.
CNN
The ancient city of Bagram is more than 30 miles north of the Afghan capital, Kabul.

The attack on the airfield had been planned for four months, he said.

A NATO coalition official told CNN that the bomber, who is presumed dead, detonated the suicide bomb vest on a sidewalk near where people were preparing for a run.

The base was under lockdown, and additional security measures were instituted at all other locations in Afghanistan for the United States and coalition allies, the official said.

The US Embassy in Kabul will be closed Sunday, except for emergency consular services, as a precautionary measure, the State Department said. In a tweet, the department cited the “serious threat violence, kidnapping and hostage taking.”

Carter offered his condolences to the families of those killed and said the injured were getting the best possible care.

“Force protection is always a top priority for us in Afghanistan, and we will investigate this tragedy to determine any steps we can take to improve it,” he said.

“For those who carried out this attack, my message is simple. We will not be deterred in our mission to protect our homeland and help Afghanistan secure its own future.”

NATO chief: ‘United against terrorism’

NATO earlier said 14 people were injured in the blast, which happened shortly after 5:30 a.m. local time. Its force protection and medical teams responded.

NATO Secretary General Jens Stoltenberg offered his support on Twitter to those affected by the attack.

“NATO remains committed to our mission to train and support the Afghan forces. We all stand united in the fight against terrorism,” he said in a statement.

The airfield is next to the ancient city of Bagram, southeast of Charikar in Parwan province. Bagram is more than 30 miles (48 kilometers) north of Kabul, the Afghan capital.

Afghan President Mohammad Ashraf Ghani condemned the attack in a statement Saturday, calling it a “cowardly” act by terrorists “who have no regard for Islam, human life or the future of Afghanistan.” He reiterated his intention to “destroy the enemies” of his country and its allies, and vowed to bring the perpetrators to justice.

Questions over security

Urgent investigations are being carried out at the base, and security has been tightened, according to CNN Pentagon correspondent Barbara Starr. The military will want to ensure that anyone tied to the blast is found before people are allowed to leave the base.

Bagram Airfield is the largest US military base in Afghanistan.
SHAH MARAI/AFP/Getty Images/file
Bagram Airfield is the largest US military base in Afghanistan.

“The question now is, how did someone get inside?” she said. “There’s very strict security at these bases. … If you come in a vehicle, you are stopped well before the outside gate. Vehicles are searched, people are searched, people must have ID – so it’s very difficult to understand right now how this happened.”

There are about 14,000 people on the Bagram base, with about 60% contractors, according to Starr. Locals move on and off the base in some contractor roles, she said.

Security breaches at coalition bases in Afghanistan have occurred but are rare, she added.

Recent violence

Saturday’s blast follows a spate of recent attacks.

A suicide car bomb targeted the German Consulate in Afghanistan’s northern Balkh province on Thursday, according to local police and officials.

Monir Ahmad Farhad, a provincial spokesman, said four people were killed and more 100 people were injured in the attack in Mazar-e-Sharif, the provincial capital. No German diplomats were hurt. The Taliban claimed responsibility for the attack.

Last week, a joint Afghan-US battle against the Taliban in the northern district of Kunduz killed 30 civilians as well as two US soldiers and 26 militants.

Those deaths happened the same day Taliban mortars killed at least seven people at a wedding party in Faryab province in northern Afghanistan, police spokesman Kareem Youresh said. At least 13 people were wounded.

An Australian woman was kidnapped November 5 by unknown gunmen in Kabul, Afghan police said.

CNN’s Ehsan Popalzai reported from Kabul. CNN’s Laura Smith-Spark reported and wrote from London and Joe Sterling from Atlanta. CNN’s Kevin Bohn and Andreena Narayan contributed to this report.