Kabul: Gunmen stormed a guesthouse popular with foreigners in Kabul on Wednesday, Afghan security officials said, with several people reportedly trapped inside as the Taliban press on with their annual spring offensive.

"Three to four gunmen entered Park Palace guesthouse in the evening. Security forces have been dispatched to the area," a senior security official told AFP on condition of anonymity.

Kabul police chief Abdul Rahman Rahimi, who was at the scene of the attack, said gunshots were heard from inside the guesthouse.

Roads leading up to the guesthouse were blocked by a large number of security personnel who arrived after the attack, according to an AFP photographer at the scene.

No group immediately claimed responsibility for the attack, but the Taliban, who have waged a 13-year war to topple the US-backed Afghan government, have attacked such guesthouses in the past.

The building is in an upmarket area of the Afghan capital of Kabul and shooting can still be heard on Wednesday night, an army commander said.

Police and special forces were at the scene in the Kolola Pushta area of Kabul, said Qadam Shah Shaheem, commander of the Afghan National Army's 111th Corps.

"Our own forces are on the way," the commander said.

Kolola Pushta is home to several international guest houses and hotels, but the exact target of the attack was not clear.

Taliban insurgents launched their spring offensive across Afghanistan late last month, stepping up attacks on government and foreign targets.

This year's offensive marks the first fighting season in which Afghan forces are battling the insurgents without the full support of US-led foreign combat troops.

Nato's combat mission formally ended in December but a small follow-up force has stayed on to train and support local security personnel.