An American Airlines flight departing New York’s LaGuardia Airport on Thursday evening had to divert to nearby John F.