The jet was on a flight from Barcelona to Boston with 296 passengers when it was diverted, media reports said.