KABUL: A suicide bomber killed at least three people and wounded five more in an attack at a mosque in the Afghan capital, Kabul, on June 15, security officials say.

It was the latest militant attack in what has been a bloody month of Ramadan in the Afghan capital.

The suspected bomber tried to enter the mosque but was blocked by police, setting off a gun battle, Interior Ministry spokesman Najib Danish said.

The attacker then ran into a kitchen before detonating a bomb.

No one immediately claimed responsibility for the attack, but the Taliban and an Daesh affiliate have done similar attacks in the past.

"Terrorist attack on Al Zahra mosque in west of Kabul. Special forces have been sent to the area," ministry spokesman Najib Danish said, without revealing if there were any casualties.

Kabul has been on edge since a massive truck bomb on May 31 killed more than 150 people and wounded hundreds in the city's fortified diplomatic quarter, the deadliest attack in the Afghan capital since 2001.

Just days later, protesters incensed by the bombing clashed with police, prompting authorities to respond with live rounds, which left at least four people dead.

Suicide at funeral

Separately, suicide bombers tore through a row of mourners at the funeral for one of the protesters, killing at least seven more people.

The carnage during the holy fasting month of Ramadan has left the Afghan capital shaken, with protesters who have set up a sit-in camp close to the bombing site demanding the resignation of Ghani's government.