DHAKA, Bangladesh — Special forces troops stormed a plane on the tarmac of a Bangladesh airport on Sunday, fatally shooting a passenger who sought to speak with the country’s prime minister, officials said on Monday.

Biman Bangladesh Airlines Flight 147 had been traveling to Dubai from Dhaka, the Bangladeshi capital. The domestic passenger, identified by the police as Mohammed Polash Ahmed, tried to storm the cockpit about 15 minutes after takeoff on Sunday afternoon, forcing the pilot into making an emergency landing in Chittagong, where the plane had been scheduled to make a stop.

A senior official with Biman Bangladesh Airlines, speaking on condition of anonymity, said seven crew members and 143 passengers, including Mr. Ahmed, who was in his mid-30s, were aboard the plane.

After landing at Shah Amanat International Airport on Sunday evening, all but one crew member — who was kept as a hostage but not harmed — were evacuated, the official said.