An Air France flight carrying more than 500 passengers made an emergency landing in Canada after suffering "serious damage" to one of its engines.