The flight bound for Vancouver had to stop in Munich.

A Lufthansa flight from Munich to Vancouver had to be diverted to Hamburg after an unruly passenger attempted to light a cigarette and tried to open the door of the airplane mid-flight.

Officials confirmed that a passenger was removed and flight LH476 was diverted on Saturday afternoon. Police are investigating.

Man tries to force open airplane door, forcing Vancouver-bound flight to land early https://t.co/sS0Wn6rCOl pic.twitter.com/l9SSGqy4rs — CBC News (@CBCNews) May 22, 2016

"It was reported that there was a man in the back of the plane screaming and yelling and apparently tried to open the back door of the aircraft at 38,000 feet," passenger Dan Iosch told CBC.

Read more:

* 'Hangry' passenger on Air New Zealand flight to Shanghai spat at crew

* Man opens security door of Boeing 737 to 'get some air'

* First-time flyer mistakes emergency exit for toilet and deploys evacuation slide

Iosch said once landed, he watched as the man was forcefully escorted from the Airbus A340-600 by paramedics and other officials.

"The captain was amazing. He had everything in hand and he was calm, but he redirected the plane to Hamburg immediately and we were cleared in straight away," Iosch told the Canadian news outlet.

The flight arrived in Vancouver three hours later then scheduled.