Afghan police secure the scene after suspected militants attacked a Shiite mosque in Kabul on Thursday. According to reports, at least two people were killed in a suicide bombing at the mosque. (Hedayatullah Amid/European Pressphoto Agency)

A suicide attack outside a mosque filled with worshipers in the Afghan capital Thursday killed at least two people, officials reported, in the latest attack of its kind against Shiite Muslims.

The attack, part of wave of deadly strikes in Kabul in recent weeks, puts further pressure on President Ashraf Ghani’s U.S.-backed government, which is under rising public criticism for failing to prevent the increasing violence. It took place as worshipers had gathered for special late-evening Ramadan prayers the al-Zahra mosque in the mostly Shiite-dominated area of Dashte Barche, in southwestern Kabul, officials said.

There were conflicting accounts as to what happened — residents said the blast was triggered by a suicide bomber on a motorcycle outside the mosque, while police said it took place inside the structure’s kitchen.

Residents said gunfire could be heard from inside the mosque, possibly a sign that other attackers may have entered the complex to kill survivors after the blast.

Several hundred worshipers usually throng the al-Zahra mosque during observances, residents said.

An Interior Ministry spokesman, Najib Danesh, said one police officer and one civilian were killed in the explosion. But residents said the toll could be as high as 15.

No group immediately asserted responsibility for the assault, but affiliates of the Islamic State in Afghanistan claimed attacks against Shiites in Kabul last year, including two similar ones at a mosque and a shrine.

The Taliban insurgents who fight the government and U.S.-led troops denied that they were behind it, saying they “never launch [attacks] against mosques or any sect.”

Reacting to the attack, Afghans echoed a long-held perception that it was aimed at fanning sectarian violence in Afghanistan, which has suffered from decades of foreign interventions and civil war.

“The attack against al-Zahra mosque is another weapon of the enemy to create discord among [Shiites] and Sunnis,” said Sami Sharaf, a former journalist.

It also showed that the conflict is getting nastier.

“Mosques are supposed to be the safest place on the earth, but the coward enemy is killing us in the place of worship,” Modaser Islami, a social activist, wrote in a tweet. “It can’t get any worse.”

The Interior Ministry said it dispatched an elite police force to battle several gunmen thought to have made their way inside the mosque after the initial blast.