LATAM Airlines aircraft pictured in Santiago, Chile, on May 5.
Atlanta CNN  — 

A pilot has died after suffering a medical emergency during a flight from Miami, Florida, to Santiago, Chile, on Monday.

The LATAM Airlines flight made an emergency landing in Panama City to allow the pilot to receive treatment, but he later died, the airline told CNN in a statement Thursday.

“LATAM Airlines Group S.A. informs that on August 14, 2023, flight LA505 (Miami - Santiago) diverted to Tocumen International Airport in Panama due to a medical emergency of one of the three members of the crew in command,” the statement reads.

“Unfortunately, after landing and receiving further medical assistance, the pilot passed away,” it added.

“We are thankful for his 25 years of service to LATAM, distinguished by his dedication, professionalism, and enthusiasm,” continues the statement.

LATAM Airlines did not confirm the name of the pilot to CNN.