British troops have been praised for running towards the “carnage” caused by a suicide bombing, which took place as they tried to help Afghans flee the Taliban.

Brigadier James Martin, commander of 16 Air Assault Brigade, said the response to the attack near Kabul airport was “one of the finest things I’ve seen”.

His troops aided wounded Afghan civilians and gave support to their United States counterparts.

He added this included providing a security perimeter to allow the US forces to remove their wounded and killed with “dignity”, and in a safe manner.

At least 169 Afghans, 13 US service personnel, two Britons and the child of a British national died in a bombing carried out by Isis-K, an Afghan offshoot of the so-called Islamic State group, last week.

Brigadier Martin was speaking after his involvement in Operation Pitting, which helped evacuate more than 15,000 people from mid-August.

Addressing the bombing, he told reporters: “The way in which I witnessed our soldiers react to that incident was one of the finest things I’ve seen.

“They ran towards the explosion, they provided immediate medical succour and support to the Afghan civilians that had been wounded, they provided explosive ordnance disposal support to the Americans and they provided a security perimeter so the Americans could withdraw their wounded and killed with dignity and under a screen of safety.”

Speaking to Sky News, he also said: “It was carnage, it’s carnage. When that level of explosion, and combination of shrapnel, is detonated, there is only one result. And that is carnage.”

Reflecting on the UK’s 20-year deployment to Afghanistan, Brigadier Martin also told reporters: “I think it’s fair to say none of us would want to see Afghanistan where it is at the moment.

“But I would observe a couple of things.

“In that 20 years, not a single terrorist attack emanated from Afghanistan and ultimately that is why the coalition went in there in the first place.

“During that time I think I’m right in saying roughly 6.3 million women were educated, a legacy that will continue – you can’t un-educate those women.

“I suppose my final observation would be a question of my own, which is what price 20 years of freedom for the people who lived in Afghanistan during that period?”

The Daily Telegraph reported the Prince of Wales, Colonel in Chief of the Parachute Regiment, had written to the troops while they were still in Afghanistan.

“You are not only an outstanding credit to the Parachute Regiment but also to this country, which, without doubt, is more fortunate than it can know in having such dedicated and courageous people as yourselves ready to step forward at such a crucial time of need,” he wrote.