Defeated by American-led forces half a decade ago, the terrorist group is rebounding amid the chaos of the Middle East.