Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

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

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 flight, operated by state-run Biman Bangladesh Airlines, took off from Dhaka at 4:35 p.m. for the trip to Dubai via Chittagong.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

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

A Biman Bangladesh Airlines flight after it made an emergency landing after an alleged hijacking attempt in Chittagong, Bangladesh, on Feb. 24, 2019. AP

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. 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.

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 behavior. He wanted to talk to the prime minister."

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

Bangladeshi soldiers could be seen during the live TV broadcast taking positions inside Shah Amanat International Airport in Chittagong, 252 kilometers (156 miles) southeast of Dhaka.