As the caliphate crumbles, ISIS is seeding a new insurgency