Security forces locate militants, who were carrying suicide belts, in a hideout in the northern city of Irbid
Jordan's security services said on Wednesday they had thwarted a plot by ISIL militants to blow up civilian and military targets, in one of the US ally's largest sweeps in years against hardline sleeper cells.
The security services located the militants, who were carrying suicide belts, in a hideout in the northern city of Irbid near the Syrian border, they said in a statement carried by the state news agency Petra.
Seven militants were killed in clashes that began on Tuesday night and lasted till dawn and one police officer was also killed, the statement said. The security services seized automatic weapons, munitions and explosives from the group.
"After diligent and detailed intelligence gathering the intelligence department was able soon to thwart a criminal and destructive plot linked by the terrorist Daesh group aimed at destabilising national security," the statement said, using the Arabic acronym for ISIL.
Two security sources said dozens of special forces had been involved in the operation and that the militants had been holed up near a Palestinian refugee camp in the centre of Irbid.
The militants who refused to hand themselves over engaged in heavy exchange of gunfire with special forces in the clashes that also injured five policemen, the security services' statement said.
"They showed heavy resistance with automatic weapons and so the security forces dealt with the situation with the necessary force," it said.
Jordanian Prime Minister Abdullah Ensour told lawmakers that the security operation had fully achieved its goals, saying the "terrorist group" had forged organisational ties with ISIL militants in an attempt to destabilise the kingdom.
Jordan has tried and sentenced dozens of people, mostly Jordanians returning from Syria. Some of them were recruited by Syria's al Qaeda offshoot Nusra Front or by ISIL.
Intensifying its crackdown on followers of radical Islamist groups since last year, Jordan has also arrested dozens of sympathisers who show support for such groups on social media.
Jordan's King Abdullah, a US ally who has safeguarded his country's peace treaty with Israel, has been among the most vocal leaders in the region to express alarm about the threat from ISIL, which has taken territory in Syria and Iraq.
Jordan's military has also conducted sorties against Islamic State hideouts in Syria.
Since Syria's civil war erupted in 2011, hundreds of Jordanians have joined Sunni militant groups fighting in the insurgency against President Bashar al-Assad's rule.
Hundreds of thousands of Syrians have meanwhile fled across the border and are now living in Jordan, some in refugee camps.
Jordan has long been vigilant about the risk of militant attacks. During the US occupation of neighbouring Iraq, Jordan suffered bombings of Amman hotels by al Qaeda-linked militants.