A flight bound for Dubai from Bangladesh's capital, Dhaka, has made an emergency landing in Chittagong after a man attempted to hijack the plane.

The suspect, a Bangladeshi, asked to speak to the country's prime minister before dying from injuries in an exchange of gunfire with military commandos, officials said.

The suspect, a Bangladeshi, asked to speak to the country's prime minister. (AAP )

The flight, operated by state-run Biman Bangladesh Airlines, took off from Dhaka at 4.35pm local time for the trip to Dubai via Chittagong.

The pilot made the emergency landing in Chittagong about 40 minutes later, after a crew member reported "suspicious behaviour" by the man, said Rezaul Karim, an official with the Bangladeshi military's inter-service public affairs office.

All 143 passengers and seven crew members aboard the Boeing 737-800 were safely evacuated, Air Vice Marshal Mofidur Rahman said at a news conference broadcast live on Somoy TV.

The commandos fired at the suspect after he shot at them when they asked him to surrender, army Maj. Gen. Motiur Rahman told reporters, according to ATN TV news.

(Nine)

The flight, operated by state-run Biman Bangladesh Airlines, took off from Dhaka at 4.35pm local time for the trip to Dubai via Chittagong. (AAP )

He said that the suspect was carrying a pistol, but did not say where the shooting took place.

The army official said the suspect, whose name has not been released, asked to speak to his wife and to Prime Minister Sheikh Hasina. The suspect died before reaching the hospital, he said.

Bangladesh military at the airport after the attempted hijacking. (AAP )

The suspect appeared to be "mentally imbalanced," said Air Vice Marshal M Naim Hassan, chairman of the Civil Aviation Authority.

"I am saying this because of his behaviour. He wanted to talk to the prime minister," he said.

Before the suspect was pronounced dead, Rahman, had described him as a "terrorist" and said that he had been arrested and was being questioned.