An Afghan security forces personnel in Kabul, Afghanistan. [Illustrative image] Image Credit: Reuters

An hours-long gun and suicide attack on a Kabul government compound killed at least 43 people, the health ministry said Tuesday, making it one of the deadliest assaults on the Afghan capital this year.

Another 10 were wounded in Monday's raid on a site where the Ministry of Public Works and other offices are located, spokesman Waheed Majroh said.

The seven-hour standoff with police ended on Monday night, Afghan authorities said. The attack began in the afternoon when a suicide bomber blew himself up in a car outside the public works ministry, Reuters reports. Militants 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. 

What happened?

The attack began when a suicide bomber blew up his explosives-laden car in front of the multi-story building that houses a public welfare department in an eastern neighborhood of Kabul, Danish said. Minutes later, three gunmen entered the building and rampaged through the office complex hunting for victims. Some employees managed to barricade themselves inside offices while police quickly evacuated 357 people, officials said.

Witnesses reported hearing at least five explosions as police and gunmen traded fire. One officer died and three were wounded.

Police cordoned of the area as they tried to secure the building, but Danish said the operation was painstakingly slow as officers moved carefully from room to room and floor to floor.

Kabul police spokesman Basir Mujahid said authorities received at least one telephone call from inside the building, but frightened employees were unable to provide any details.

No one claimed responsibility, but both the Taliban and the local Islamic State affiliate have carried out brazen daytime attacks in the capital.

The building is in area that includes several apartment buildings as well Afghanistan's department for public works.

The attack came two days after U.S. President Donald Trump announced the withdrawal of half of the 14,000 American troops and just hours after Pakistan's Foreign Minister Shah Mahmood Qureshi was in Kabul to discuss a negotiated end to Afghanistan's 17-year war. Qureshi, who then continued his trip to Iran, condemned the attack.

Pakistan helped orchestrate last week's peace talks in the United Arab Emirates, where representatives from Saudi Arabia, the UAE, Pakistan and the United States met with the Taliban.