KABUL, Afghanistan — A suicide bomber killed 10 people when he set off explosives on Friday in a crowd of Shiite Muslims near a mosque complex in Kabul, the latest attack to target ethnic and religious minorities in the Afghan capital.

The Islamic State claimed responsibility for the strike, which also wounded 22 people, but a government spokesman blamed another terrorist group, the Haqqani network, a Pakistani-based organization affiliated with the Taliban.

The Hazaras are a long-oppressed minority in Afghanistan whose members tend to be Shiite, and the blast prompted a group to take to the street in protest of the security failures, marching and chanting near the site of the explosion before crews had finished cleaning up.

President Ashraf Ghani condemned the attack in a statement, saying Afghans would not be cowed by terrorism, but his words were likely to ring hollow with the Hazaras.