A battle between Taliban gunmen and Afghan security forces raged through the night at a guesthouse and logistics facility used by foreign contractors in Kabul.
Police said a powerful truck bomb exploded at the gates of the Northgate Hotel at about 1:30 a.m. on August 1, after which militants stormed into the compound.
Roads in the neighborhood were blocked off by Afghan security forces and columns of vehicles with Afghan troops and police were deployed in the area.
Afghan media reported that forces from NATO's Resolute Force mission also were involved in what correspondents described as a "clearing operation."
Correspondents also reported hearing the sound of rocket-propelled grenades being launched and exploding within the heavily guarded compound to the east of Kabul's international airport.
Kabul police chief Abdul Rahman Rahimi said one attacker died when his vehicle detonated and two other militants were killed by police in the gunbattle, which is now over.
One police officer was also killed and four others were wounded.
The guests and staff at the Northgate Hotel were unharmed.
Power in parts of Kabul was briefly cut off shortly after the blast.
The Taliban claimed responsibility for the attack, saying the truck bomb cleared the way for Taliban fighters to enter the compound with rocket-propelled grenade launchers and assault rifles.
Afghan officials did not immediately release complete casualty figures. But the BBC reports that Kabul police confirmed at least one policeman was killed and another injured by gunfire.
The Taliban, which is known to exaggerate casualties caused by its attacks, claimed that more than 100 foreigners had been killed and wounded -- calling them "American invaders."
In addition to housing foreign guests, the Northgate Hotel is a logistics facility that provides support services to foreign military and civilian contractors in Afghanistan.
In 2013, the facility was granted diplomatic status, allowing it to continue using private foreign security companies rather than the Afghan Interior Ministry’s Afghan Public Protection Force.
A similar Taliban attack against the Northgate Hotel in July 2013 -- a truck bomb followed by a gun battle -- killed nine people, including four Nepalese and one Briton.
The latest attack comes about a week after the Islamic State militant group claimed responsibility for a suicide attack on a demonstration by members of the mainly Shi'ite Hazara minority, killing at least 80 people.
It also follows an attack in June on a convoy of Nepalese security contractors who worked for the Canadian Embassy and other attacks against foreigners in Kabul -- including a suicide attack in January at Camp Baron, a camp used by foreign contractors.