A Taliban suicide car bomb has rocked the Afghan capital Kabul, killing at least 10 civilians in a diplomatic area that also includes the US embassy.

It is the second such attack this week that underscored Afghan government warnings that a preliminary US-Taliban deal on ending America’s longest war was moving dangerously quickly.

Another 42 people were wounded and 12 vehicles destroyed, Interior Ministry spokesman Nasrat Rahimi said.

The Taliban said they targeted vehicles of “foreigners” as they tried to enter the heavily guarded Shashdarak area where Afghan national security authorities have offices.

A damaged vehicle is removed after a car bomb explosion in Kabul
A damaged vehicle is removed after the car bomb explosion (Rahmat Gul/AP)

The Nato Resolute Support mission is nearby and British soldiers were at the scene retrieving what appeared to be the remains of a Nato vehicle.

Footage widely shared on social media showed the suicide bomber’s vehicle turning into the checkpoint and exploding – and a passer-by trying to sprint away just seconds before.

Once again, stunned civilians were the victims.

“I don’t know who brought us to the hospital and how,” said one of the wounded, Nezamuddin Khan, who was knocked unconscious and woke up in a local hospital.

The explosion follows a Taliban attack targeting a foreign compound late on Monday that killed at least 16 people and wounded more than 100, almost all of them local civilians.

US envoy Zalmay Khalilzad has been in Kabul this week briefing the Afghan president and others on the US-Taliban deal to end nearly 18 years of fighting that he says only needs President Donald Trump’s approval to become a reality.

But the Afghan government has raised serious concerns, including in new comments delivered on Thursday as the latest attack occurred.

The agreement was moving with “excessive speed”, presidential adviser Waheed Omer told reporters, warning that difficult days were ahead.

Resolute Support forces arrive at the site of a car bomb explosion in Kabul, Afghanistan
Resolute Support forces arrive at the site of the explosion (Rahmat Gul/AP)

“Afghans have been bitten by this snake before,” Mr Omer said, recalling past deals from which, like now, the Afghan government has been sidelined.

“Where there is no feeling of ownership there is no safety,” he said, though he emphasised that the government still sees the peace process as an opportunity.

The Taliban, at their strongest since their 2001 defeat by a US-led invasion, have refused to negotiate with the government, calling it a US puppet.

The Afghan government on Wednesday said it shares the concerns raised by several former US ambassadors to Afghanistan, who warned that a full US troop withdrawal that moves too quickly and without requiring the Taliban to meet certain conditions, such as reducing violence, could lead to “total civil war”.

Mr Khalilzad has said 5,000 US troops would withdraw from five bases in Afghanistan within 135 days of a final deal.

Between 14,000 and 13,000 troops are currently in the country.

The Taliban want all of the approximately 20,000 US and Nato troops out of Afghanistan immediately, while the US seeks a withdrawal in phases that would depend on the Taliban meeting certain conditions such as a reduction in violence.

The US also seeks Taliban guarantees that they will not allow Afghanistan to become a haven from which extremist groups such as al Qaida and the local affiliate of the Islamic State group can launch global attacks.

The aftermath of Monday’s suicide bombing
The aftermath of Monday’s suicide bombing (Rahmat Gul/AP)

The deal is meant to be followed quickly by intra-Afghan talks that the US would like to see begin ahead of Afghanistan’s presidential election on September 28.

Afghan President Ashraf Ghani, who has been shown the US-Taliban deal but not allowed to keep a copy, has insisted that the election must not be delayed.

He seeks a second term and what he calls a strong mandate to negotiate with the militant group on the country’s political future.

Mr Ghani has rejected talk of an interim government, an idea that has gained such traction in Kabul that many other presidential candidates have barely campaigned.

Mr Omer acknowledged on Thursday the risks of holding another chaotic election after the presidential one in 2014 and last year’s parliamentary vote.

He said the election must happen on time but said a vote that is not transparent will “cause challenges”.