At least 43 killed and 10 others wounded after attackers storm Afghan government building triggering gun battle.

The death toll in hours-long coordinated attack on a government building in the Afghan capital has risen to at least 43 people, according to health officials, making it one of the deadliest assaults on Kabul this year.

Hundreds of people were trapped on Monday on a site where the Ministry of Public Works and other offices are located when gunmen stormed the building and began moving from floor to floor targeting employees.

Others killed included a police officer and three of the attackers, who were shot dead by Afghan security forces, Interior Ministry spokesman Najib Danish said. Another 10 people were wounded in the attack.

The attack began in the afternoon when a suicide bomber blew himself up in a car outside the public works ministry. Gunmen then stormed the building of the National Authority for Disabled People and Martyrs’ Families, taking civilians hostage as they fought a gun battle against Afghan soldiers.

Afghan security forces went from floor to floor of the building in an operation to rescue over 350 people inside, but had to exercise restraint in their operations against the attackers given the number of employees there, a senior security official said.

”There was a frightening sound from the explosion,” Hassib Ulah, a local shopkeeper, said. “We got scared and escaped. People were very upset and everyone was running away.”

Ambulances raced to the scene during a lull in the shooting, a witness who lives nearby told Reuters. At least 20 people wounded in the clashes were taken to the hospital.

An official working in another government building close by said employees had locked themselves in their offices after hearing the explosions and gunfire. During the standoff, which reportedly went on for eight hours, the building’s second floor caught fire, according to local media.

No group immediately claimed responsibility for the attack.

The Taliban launches regular attacks and controls nearly half of Afghanistan. But the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) group is also active. Both armed groups have previously launched coordinated attacks like the one on Monday.

Flames rise from a government building after an explosion and attack by gunmen [Rahmat Gul/AP Photo]

The raid capped a tumultuous few days in Afghanistan where officials are reeling from US President Donald Trump‘s plan to slash troop numbers, which many fear could harm efforts to end the 17-year war with the Taliban.

On Thursday, an official said the US president was planning to withdraw at least 5,000 of the 14,000 American troops in Afghanistan.

The US intervened in Afghanistan to overthrow the Taliban from power in the wake of the September 11, 2001 attacks on the World Trade Center in New York and the Pentagon in Washington.

The assault comes a day after President Ashraf Ghani appointed Amrullah Saleh and Assadullah Khaled, both former spymasters, known for their anti-Taliban and Pakistan stance, to head the interior and defence ministries, respectively.

Explosions heard

Mushtaq Rahim, a security analyst based in Kabul, told Al Jazeera that he had passed by the area a few minutes after the attack took place.

“The blast took place just before staff left their offices for the day,” he said. “There’s a lot of smoke coming out of the area. A fire had broken out in the building where the ministry is placed.”

Several apartment buildings and a government public works department building are located in the same area of the eastern Kabul neighbourhood where the attack took place.

One of the wounded civilians broke several bones after jumping from the third floor of a building to escape the attackers, a correspondent of the AFP news agency said at a hospital.

Plumes of black smoke could be seen rising from the compound, with at least two military helicopters circling above. Journalists near the scene reported hearing numerous explosions in the hours after the attack began mid-afternoon.

Monday’s attack was the biggest in Kabul since November 28 when the Taliban detonated a vehicle bomb outside the compound of British security firm G4S, killing at least 10 people and leaving a massive crater in the road.