The Islamic State has long threatened to strike Russia for helping the Syrian president, Bashar al-Assad, stay in control.