TEHRAN, Iran — Iran’s Revolutionary Guards said Monday that missiles it fired into Syria had successfully hit Islamic State group targets in retaliation for attacks in Tehran claimed by the jihadists earlier this month.

“Based on credible information, the missile operation against Daesh has been successful,” Revolutionary Guards spokesman General Ramezan Sharif said on the elite force’s Sepahnews website, using an Arabic acronym for IS.

Sharif also warned that missile attacks launched into eastern Syria the previous day would be repeated if the extremists take action against Iran’s security.

Iranian state TV’s website quoted Sharif as saying on Monday that “if (IS) carry out a specific action to violate our security, definitely there will be more launches, with intensified strength.”

The Guards fired six missiles from the west of Iran across the border and into Syria’s mostly IS-held Deir Ezzor province, targeting an IS command base, they said earlier.

Iranian media reported some of the mid-range missiles fired into Syria were of the Zolfaghar type, a precision-guided missile with a range of about 750 kilometers.

Iran’s homegrown missiles, a serious point of contention with Washington and Jerusalem, can reach up to 2,000 kilometers.

The strike was in response to attacks earlier in June on Iran’s parliament and a shrine in Tehran that killed at least 17 people and wounded more than 50.

State TV showed mobile missiles launchers being moved in daylight.

The missile attack was the first by Iran outside its own territory in 30 years, since the Iran-Iraq war of 1980-88, media in the Islamic republic has reported.

General Amir Ali Hajizadeh, who heads the Revolutionary Guards’ aerospace wing, told state television: “The missiles were fired from Iran and they passed over Iraq and landed in Syria.”

“Drones flying from near Damascus to Deir Ezzor transmitted (footage of) missiles hitting their targets,” he said.

“Firing these missiles from 600 or 700 kilometers away onto a small building… demonstrates Iran’s capacity and intelligence capabilities” against jihadist groups, he said.

It came hours after supreme leader Ayatollah Ali Khamenei in a statement vowed Iran would “slap its enemies” in honor of the families of victims, including those killed in Syria and Iraq.