At least 12 people died and dozens were injured in gun and bomb attacks at the Iranian parliament and Ayatollah Khomeini’s shrine in Tehran, emergency services said, as cited by local media. Both assaults were later claimed by Islamic State.

Attackers opened fire on guards inside the parliament building in the Iranian capital on Wednesday morning, FARS news agency reported.

A guard from the Islamic Revolutionary Guard Corps (IRGC) was among those killed in the shooting.

Tehran Governor Hossein Hashemi confirmed the incident at the Ayatollah Khomeini mausoleum, saying that one attacker was killed by security forces and other assailants were arrested, IRIB broadcaster reported, as cited by Reuters

Fars reported that two assailants opened fire at civilians. Another assailant blew himself up in an apparent suicide attack, local news agencies said.

The death toll in attacks across Tehran rose to 12, with at least 39 people injured, the head of Iran's emergency department, Pir-Hossein Kolivand, said, IRIB broadcaster and Mehr news agency reported.

The Iranian Intelligence Ministry confirmed that a terrorist group launched the attacks in Tehran.

“This morning two terrorist groups attacked the parliament and Imam Khomeini's shrine ... Members of a third group were arrested before being able to carry out any attack,” the ministry said, according to Reuters, citing Persian-language IRIB TV.

Later, Islamic State (IS, formerly ISIS/ISIL) claimed responsibility for the assaults on both the parliament and Ayatollah Khomeini's mausoleum, said Amaq news agency, which is affiliated with the group.

Mehr news agency released an alleged photo of one of the attackers killed by security guards outside the mausoleum. Grenades, an assault rifle and numerous magazines can be seen next to the body of the suspected assailant.