(CNN) A man who attempted to hijack a passenger plane carrying 156 passengers and crew using a toy gun has been shot dead by Bangladeshi commandos.

Biman Bangladesh Airlines Flight BG 147 had been traveling to Dubai from Dhaka, the Bangladeshi capital, with a scheduled stopover in the city of Chittagong, Sunday evening.

During the initial 25-minute flight, when the plane was at an altitude of 15,000 feet (4,572 meters), the unnamed suspect took at least two members of the crew hostage using a toy gun and demanded to speak with Bangladesh Prime Minister Sheikh Hasina.

"He tried to create a panic among the cabin crew and claimed that he wanted to enter the cockpit. It was a general attempt for a hijacker to enter the cockpit to take control," Tanbir Ahmed, spokesperson for Bangladeshi Ministry of Civil Aviation and Tourism told CNN.

Security forces stormed the Boeing 737 after it landed at the Shah Amanat International Airport in the southeastern city of Chittagong at the scheduled time of around 6:30 p.m. local time.

Read More