Canadian foreign affairs minister resigns amid controversy