A truck packed with explosives blew up near a court in the eastern Afghan city of Gardez on Thursday, killing at least five people in an attack claimed by Taliban insurgents.

The explosion comes two days after at least 56 people were killed in attacks elsewhere in the country, including women and newborn babies, dealing a setback to peace plans in the war-ravaged nation.

Taliban attack
A member of the Afghan security forces stands guard next to damaged army vehicles after a Taliban attack in Ghazni city, Afghanistan August 15, 2018.REUTERS

"A car bomb explosion took place near a military court in Gardez city, which is a populated area. Dozens of civilians are feared to be dead and wounded," said Tariq Arian, an interior ministry spokesman. Taliban spokesman Zabihullah Mujahid in a statement said the rebel group was responsible for the attack.

Attack carried out by a truck packed with explosives

Emal Khan Momand, a military spokesman in Paktia province where Gardez is located, said the attack was carried out by a truck packed with explosives. Five people were killed and 14 were wounded, he said.

Afghan women sit in an ambulance after being rescued by security forces during an attack and gunfire at a hospital in Kabul, Afghanistan May 12, 2020. REUTERS/Mohammad Ismail

The blast comes after a violent week in which gunmen attacked a maternity hospital in Kabul, killing 24 people, including new mothers and newborn babies, on Tuesday. A suicide blast claimed by the Islamic State at a funeral in eastern Nangahar on the same day killed 32.

President Ashraf Ghani condemned the attacks and said he had ordered the military to switch to offensive mode rather than the defensive stance it had adopted as the United States withdraws troops and tries to broker talks with the Taliban.

The Taliban has denied any involvement in the attacks, but the government has accused the group of fostering an environment in which terrorism thrives or working with other militant groups who could have been involved, straining efforts by the United States to bring the insurgents and the Afghan government together.