ISIS has published video purporting to show its gunmen inside the Iran parliament after they stormed the building in twin attacks that have rocked the city.

Twelve people are dead and 42 injured after four gunmen stormed Tehran's parliament complex and two suicide bombers - one of them female - detonated their vests at the Ayatollah Khomeini mausoleum.

21 A person armed with an assault rifle walks through the parliament building during the siege in footage published by ISIS

21 A second image shows what appears to be victim of the raid lying on the ground with blood visible on their shoulder

The jihadi group has claimed responsibility through its Amaq News Agency. This remains unverified, but if true, marks the group's first attack in Iran.

One of the men in the body cam video is heard saying: "Thank you God," before taunting authorities, adding: "Do you think we are going to leave? We are staying."

One of the attackers blew himself up on the fourth floor of the parliament office building as the gun battle raged today.

MOST READ IN NEWS HAPPY MEAL McDonald’s worker pays customer’s bill after he calls mum to ask for her order Latest 'BIG FRIENDLY BEAR' First pics of sergeant shot dead at police station as pals pay tribute HERE WE SNOW! Leeds hit by SNOW as temps plummet to -5 as Brits brace for 65mph gusts today Exclusive HAPPY MEAL McDonald’s worker who paid for lad’s meal has secretly bought food for MONTHS Exclusive GRIM FIND Cadaver dogs smell HUMAN REMAINS by Carole Baskin's missing husband's lake house EUGE NEWS Princess Eugenie 'so excited' to be expecting baby as Andrew & Fergie share joy

The siege has now ended, with the country's interior minister claiming security forces have killed the four attackers.

Dramatic photos show those trapped being lowered to cops taking cover below first-floor windows.

An AP reporter saw several police snipers on the rooftops of buildings nearby while shops in the area were shuttered, and gunfire could be heard.

Witnesses said the attackers were shooting from the fourth floor of the parliament building down at people in the streets below.

21 An armed man stands at a window of the parliament building Credit: AP:Associated Press

21 A policeman gestures from the windows of the building during the siege Credit: EPA

21 Members of the Iranian security forces swarm the building with guns drawn Credit: Reuters

21 The dramatic shootout and blasts have left at least 12 people dead, authorities say Credit: Reuters

21 It was not clear if security forces were among those killed in the attacks Credit: Reuters

21 The attack was claimed by ISIS via the terror group's Amaq News Agency Credit: Reuters

21 Armed security forces run across an open space outside parliament as the siege unfolded Credit: EPA

21 Smoke rises while the deadly gun battle rages in Tehran Credit: EPA

21 Locals take cover behind a wall while security forces try to stop the attackers Credit: Reuters

21 ISIS has claimed responsibility for the attack, which if true would mark the group's first attack in Iran Credit: AP:Associated Press

21 Cops try to help some civilians lower themselves from the parliament building Credit: EPA

Witness Ebrahim Ghanimi said: "I was passing by one of the streets. I thought that children were playing with fireworks, but I realised people are hiding and lying down on the streets. With the help of a taxi driver, I reached a nearby alley."

Police helicopters circled over the parliament building and all mobile phone lines from inside were disconnected.

The semi-official ISNA news agency said all entrance and exit gates at parliament were closed and that lawmakers and reporters were ordered to remain in place inside the chamber.

21 Blood is seen smeared across the ground at the scene of the mausoleum suicide bombing Credit: AP:Associated Press

21 The bombing was just one part of two coordinated attacks in Iran today Credit: AP:Associated Press

21 Cop cars are seen parked outside the tomb Credit: AP:Associated Press

21 Pictured are the crowds gathered outside the mausoleum today where two suicide bombers were reported to have detonated their vests Credit: Getty Images

21 A cop armed with an assault rifle stands guard at the scene of the parliament attack Credit: EPA

Meanwhile, a gardener was reported dead and several more injured when armed assailants entered the grounds of Khomeini's mausoleum in the south of the city.

Two attackers - at least one female - blew themselves up outside the shrine, according to local media. The latest death toll is 12, with another 42 injured.

In addition to being lethal, the attack on the shrine of Khomeini is symbolically stunning.

As Iran's first Supreme Leader, Khomeini is a towering figure in the country and was its revolutionary leader in the 1979 ouster of the shah.

Iran is a key player in the fight against ISIS in both Syria and Iraq. Shiite Iran has been singled out as a target by Sunni jihadists, including ISIS, but has largely escaped attacks within its urban centres.

21 Cops try to help those trapped inside the building Credit: Reuters

21 Policeman take cover during the siege during which gunmen fired on crowds below Credit: AP:Associated Press

21 People inside the parliament flee in terror after the attack erupted Credit: Reuters

We pay for your stories! Do you have a story for The Sun Online news team? Email us at tips@the-sun.co.uk or call 0207 782 4368.