A passenger onboard a Lufthansa flight from Frankfurt to Belgrade was restrained by crew members on Sunday after he was caught tampering with the emergency exit door during the flight, according to a spokesman for the airline, Reuters reported.

The man, identified as a Jordanian-American national, changed seats several times shortly after the plane's departure and started fiddling with the emergency door, said Lufthansa spokesman, Andreas Bartels.

The passenger got up mid-flight and started creating a scene, banging on the cockpit door and threatening to open one of the aircraft's doors as he cried about his desire to join Allah with all the passengers onboard before he was stopped by flight staff and a members of a Serbian handball team, according to Serbian news publication RTS.

However, flight crew and fellow passengers onboard the LH 1406 flight were able to restrain the unruly passenger and pacify the man for the remainder of the journey. "It was a normal door, which of course cannot be opened in-flight... it was not the cockpit door," Bartels said, according to Agence France-Presse. "The safety of the flight was not jeopardized and the flight landed safely in Belgrade."

He added that the person responsible was detained by Serbian authorities as soon as the flight landed at its destination.