NEW YORK (AP) — A Turkish Airlines jetliner headed from Seattle to Istanbul made an emergency landing in New York on Wednesday after the captain died on board, an airline official said.

Pilot İlcehin Pehlivan, 59, lost consciousness at some point after flight 204 took off from Seattle on Tuesday night, Turkish Airlines spokesperson Yahya Ustun said in a statement.

Medical intervention failed to revive the captain, and the co-pilot decided to make an emergency landing, but the captain died before the plane landed, Ustun said.

Data from the tracking site FlightAware shows that the Airbus A350 landed at John F. Kennedy International Airport just before 6 a.m.

Arrangements were being made for passengers to reach their destination from New York, the airline spokesperson said.

Pehlivan had worked at Turkish Airlines since 2007, Ustun said. A routine health check in March showed no health problems that would have prevented him from working, he said.

“As Turkish Airlines, we deeply feel the loss of our captain and extend our sincerest condolences to his bereaved family, colleagues, and all his loved ones,” Ustun said.

Our website is the place for the latest breaking news, exclusive scoops, longreads and provocative commentary. Please bookmark nationalpost.com and sign up for our newsletters here.