Iraq’s prime minister has ordered an investigation into how a bear escaped from its crate aboard an Iraqi aircraft as it was due to depart from Dubai airport, leaving passengers disgruntled over the delay and causing a stir on social media.

Iraqi Airways said that it wasn’t to blame for the bear’s escape and that the aircraft’s crew worked with authorities and specialists in the United Arab Emirates to sedate the animal and remove it from the plane.

A video clip circulating on social media showed the plane’s captain apologising to passengers for Friday’s take-off delay because of the bear’s escape from its crate in the cargo hold.

Iraqi Airways said procedures to transport the bear were carried out in accordance with the law and with procedures and standards approved by the International Air Transport Association (IATA).

A person speaking on the video seen on social media said the aircraft was an hour late for its trip to Baghdad and that passengers were being asked to disembark until the issue was resolved.

Dubai International Airport, the world’s busiest for international travel, declined to comment.

The airline had initially said that the bear was being flown from Baghdad to Dubai, but an Iraqi Airways official confirmed to The Associated Press on Sunday that the bear was being transported to the Iraqi capital.

The official declined to name the animal’s owner.

Keeping predatory animals as pets in Iraq – especially in Baghdad – has become popular among the wealthy.

Authorities have struggled to enforce legal provisions to protect wild animals and Baghdad’s police has previously called on citizens to assist authorities in preventing such animals from being let loose on the city’s streets or ending up as exotic meals in restaurants by reporting such cases.