The Islamic State group has claimed responsibility for a suicide bombing that killed at least 56 people and injured 194 on Friday at a Shiite Muslim mosque in Pakistan's northwestern city of Peshawar.

The militant group said in a statement Friday night that an Afghan bomber, identified as Julaybib Kabulia, carried out the strike against the Shiite place of worship.

The bombing was the deadliest attack in Peshawar, capital of Khyber Pakhtunkhwa province, in years.

Pakistan security forces are seen at the site of a suicide attack at a Shiite Muslim mosque in Pakistan's northwestern city of Peshawar on March 4, 2022. (Anadolu Agency/Getty/Kyodo)

Eyewitnesses and police officials have said that the attacker first fired gunshots at two police guards posted outside the mosque, killing one of them on the spot and injuring the other before forcing his way into the mosque where he detonated his suicide vest.

Islamic State has long targeted Shiites in Pakistan and Afghanistan, the minority Muslim sect in the countries.

Prime Minister Imran Khan tweeted that law enforcement agencies had identified the origin of the attack and were "going after them with full force."