Afghan security guard inspects the site of a powerful truck bomb

A Taliban truck bomb blasted through a hotel for foreigners in Kabul Monday, triggering a seven-hour gun and grenade assault that highlighted growing insecurity in a city still reeling from its deadliest attack for 15 years.

The guests and staff of the Northgate hotel escaped unharmed. But one policeman was killed after the truck bomber paved the way for two other armed insurgents to enter the heavily guarded facility near Kabul airport.

The powerful bombing rocked much of the Afghan capital, leaving a huge muddy crater and piles of scorched debris strewn at the compound, which was previously attacked in July 2013.

"A truck bomb packed with explosives struck the outer wall of the hotel," said Kabul police chief Abdul Rahman Rahimi.

"One policeman lost his life and three others were wounded but none of the hotel staff or guests were hurt. Three Taliban fighters including the truck bomber were killed."

The attack comes days after the Islamic State group claimed twin bombings that left 80 people dead in Kabul, the deadliest attack in the city since the Taliban were ousted from power in 2001.

Afghan commandos set up a tight security cordon around Northgate as sporadic grenade explosions and gunfire shook the area after the attack began around 1:30am (2100 GMT Sunday). 

- Growing insecurity -

Local TV station Tolo cited a source inside the facility as saying that all the staff and guests -- including 11 foreigners -- hunkered down in safe rooms throughout the night. 

It added that NATO special forces had overseen the clearance operation at the Northgate, a luxury enclave which had been fortified with blast walls, watchtowers and sniffer dogs.

Tremors from the bombing rattled windows across the city. It also cut a power line that supplies electricity to half of Kabul, according to the city's main utility.

"The blast was so strong that it startled everybody out of their beds," Abdul Mohib, a resident of the neighbourhood, told AFP. "The children were shocked. We all left the house screaming and shouting as our windows were shattered." 

Taliban spokesman Zabihullah Mujahid said insurgents armed with rocket-propelled grenades and other weapons blasted their way into the compound after the truck bomb went off.

The militants are intensifying their annual summer offensive after a brief lull during the holy fasting month of Ramadan, which ended in early July.

The previous attack on the hotel compound also involved a Taliban truck bomb followed by a gun siege. Nine people were killed, including four Nepalese.

The IS twin bombings on July 23 tore through crowds of minority Shiite Hazara protesters as they gathered to demand that a major power line be routed through the central province of Bamiyan, one of the most deprived areas of Afghanistan.

Afghan forces backed by US airstrikes have since intensified an offensive against IS jihadists in their eastern stronghold of Nangarhar province.

The latest attacks in Kabul are a grim reminder of growing insecurity in Afghanistan, which has resulted in large civilian casualties.

The UN last week said civilian casualties rose to a record high in the first half of 2016, with 1,601 civilians killed and 3,565 wounded -- a four percent increase compared to the same period last year.

Source: AFP