In recent months Islamic State has intensified attacks in areas out of its control in efforts to weaken the offensive launched on Oct. 17 to retake Mosul, the last major Iraqi city under Islamic State control.