The militant group has also carried out deadly attacks in Cairo and has urged its supporters to launch attacks around the world in recent weeks as it goes on the defensive in its Iraqi and Syrian strongholds.