KABUL (Reuters) - Victims of the latest attack on Shi’ite Muslims in Afghanistan directed their anger squarely at the Afghan government, accusing it of failing to protect them despite repeated attacks.

Afghans inspect copies of the Koran burnt inside a Shi'ite Muslim mosque after yesterday's attack in Kabul, Afghanistan August 26, 2017.REUTERS/Mohammad Ismail

Suicide bombers and gunmen, some dressed in police uniforms, attacked a mosque in Kabul during prayers on Friday, killing more than 40 people and wounding more than 100, according to mosque leaders.

Many of the victims were women trapped on the mosque’s second floor.

The United Nations put the preliminary toll at 20 civilians killed and more than 30 wounded, while the Interior Ministry said 28 people died and 50 were wounded.

At least 30 victims were buried on Saturday on the grounds of the same mosque as hundreds of family members, friends, and other mourners gathered under bullet-marked buildings.

Inside the mosque itself, blood was spattered everywhere and the walls were burned and scarred.

“The government does not care about us,” said Akhtar Hussain as he attended the funeral of a relative. “What should we expect from a government that has never tried to protect us?”

Islamic State-affiliated militants claimed responsibility for the attack, the latest in a number of deadly assaults on Afghanistan’s Shi’ite population.

Sectarian violence has been relatively rare in Afghanistan, but since 2015 Islamic State militants have helped escalate fears by killing scores of Shi’ites at mosques, public gatherings and elsewhere.

Friday’s attack was the sixth attack on Shi’ite mosques so far this year, with Islamic State claiming responsibility for half of them, according to the U.N.

“This latest in a series of attacks targeting members of the Shi’a community at worship has no possible justification,” Toby Lanzer, acting head of the U.N. mission in Afghanistan, said in a statement.

“Such attacks directed against congregations and places of worship are serious violations of international law that may amount to war crimes.”

The attacks often take political overtones as members of the Shi’ite minority complain that the government ignores their needs.

“This attack could have been avoided,” said Abdul Razaq Sakha, a leader at the mosque. “Our government is guilty in this regard.”

After past pleas for more protection, the government assigned one policeman to help guard the mosque, he said.

That policeman died alongside a private guard when the attackers stormed the gates.

Mourners who gathered on Saturday said the government should help provide security, otherwise they would take the matter into their own hands.

“A police check point is very close to our mosque but they did not act until terrorists killed and wounded dozens of people,” said Mohammad Jahfar Rezaee, whose aunt died in the attack.

“The government is deaf so we have to defend ourselves at any cost.”