The Taliban has claimed responsibility for a truck bomb attack on a military and logistics services compound in Kabul early Monday morning, after an explosion was heard from all over the capital.

Four heavily armed attackers were fighting on the side of the Northgate Hotel, a security official said.

The Hotel is a secure residential compound for foreign military and civilian organisations.

Afghan authorities have not given an indication of any casualties as yet.

The attack comes a week after so-called Islamic State claimed responsibility for a suicide attack at a protest in the city, which killed at least 80 people.

The Taliban, which says it wants to avoid civilian casualties, said the compound was not near homes and that ordinary civilians were not harmed.