The flight was forced to land because of a “mechanical issue,” the company said, leaving hundreds of passengers stranded.