DUBAI, Oct 1 — The United Arab Emirates announced on Thursday it was probing a possible “terrorist” link to an apparent attack by a pilot on board a flight to Israel that saw passengers reroute the plane to stop it from crashing.

The dramatic events on Wednesday ended with passengers being given a hero’s welcome by Prime Minister Benjamin Netanyahu back home in Israel as they arrived from Saudi Arabia, where the plane made an emergency landing hours earlier.

Netanyahu credited the flydubai pilot, Indian national Smit Machchhar, as well as passengers with averting catastrophe, after a co-pilot allegedly stabbed him and tried to crash the plane.

Passengers described rushing the cockpit after the plane suddenly plummeted, losing around 17,000 feet of altitude in the span of a minute, according to the Flightradar24 website.