Islamic State boosts attacks in response to territorial losses