The Taliban claimed responsibility for Wednesday’s attack, which struck the Bagram air base north of Kabul.
“First, a heavy-duty Mazda vehicle struck the wall of the American base,” Taliban spokesman Zabihullah Mujahid said.
“Later several mujahideen equipped with light and heavy weapons were able to attack the American occupiers.”
The US-led military coalition said the attack was “quickly contained and repelled”.
Taliban fighters who unsuccessfully tried to breach the airfield were killed in a series of airstrikes, the Resolute Support mission said in a statement.
Two civilians were killed and more than 70 injured during the attack, the Ministry of the Interior said.
Five servicemen from the former Soviet republic of Georgia, which is part of the coalition, were among those injured, the country’s defence ministry said in a statement.
The majority of casualties were Afghan.
US Secretary of State Mike Pompeo condemned the attack that he said wounded at least five coalition troops.
A spokeswoman for the governor of Parwan province, which includes the Bagram district, said there was a 30-minute clash between the attackers and foreign forces.
Two attackers detonated vehicles laden with explosives at the southern entrance to the base, while five more opened fire.
Some of the fighters barricaded themselves inside a medical facility they had attacked, the coalition of foreign forces in Afghanistan said in a statement.
US President Donald Trump called off talks with the Taliban in September after an attack by the group killed an American soldier.
The Taliban controls more territory than at any point since being ousted from power by Afghan foes with US air support in 2001.
Want to comment?
Send us an email, making it clear which story you’re commenting on and including your full name (required for publication) and phone number (only for verification purposes). Please put “Reader views” in the subject.
We’ll publish the best comments in a regular “Reader Views” post. Your comments can be brief, or we can accept up to 350 words, or thereabouts.
InDaily has changed the way we receive comments. Go here for an explanation.
Local News Matters
Media diversity is under threat in Australia – nowhere more so than in South Australia. The state needs more than one voice to guide it forward and you can help with a donation of any size to InDaily. Your contribution goes directly to helping our journalists uncover the facts. Please click below to help InDaily continue to uncover the facts.