Jordan has long struggled with homegrown extremism, with hundreds of Jordanians fighting alongside Isis militants in Iraq and Syria and several thousand more supporting the extremist group in the kingdom.