The U.S. miscalculated by bringing Turkey into the battle against the Islamic State extremist group.