Carter told an international security conference in Bahrain that the battle for Mosul and for the Syrian city of Raqqa, the de facto capital of the extremists' self-described caliphate, would be crucial for defeating the group, which has claimed attacks worldwide.