Newly released footage shows how Oklahoma police shot and killed a man who behaved uncontrollably on a bus and tried to grab an officer's gun.

Miguel Chavez-Angles, 42, died in Oklahoma City last month and the police department released video of the confrontation that led to his shooting Monday.

Chavez-Angles had been taken to the hospital just hours before after he was seen inside a church banging his head on the floor and saying he was upset about his potential divorce, authorities said.

He called his wife in the afternoon before getting into a car with two women and telling them to drive, KFOR reported.

Miguel Chavez-Angles, 42, died in Oklahoma City last month after acting erratically inside a bus (pictured). Police released video of his fatal shooting Monday

The footage shows Chavez-Angles urging the bus driver not to stop driving and offering him money. Chavez-Angles then climbs on top of a luggage rack and grabs a fire extinguisher (pictured)

Police received reports of a kidnapping right around that time.

Chavez-Angles eventually got out of the car and locked himself into an auto parts store, police said, before getting on a city bus.

Surveillance footage shows Chavez-Angles pressing the bus driver to keep driving and offering him money.

Chavez-Angles seems agitated as he continues his conversation with the bus driver, telling him not to open the door.

He then climbs on top of a luggage rack and gets hold of a fire extinguisher. The driver opens the door and tells all the other passengers to get off the bus.

At one point, the bus driver stops the vehicle and tells all the other passengers to get off. It looks like only Chavez-Angles and the driver are left inside when two police officers arrive (pictured)

The vehicle appears to be empty except for Chavez-Angles and the driver when two officers arrive.

One of them, identified as Heather Lane, steps inside with her gun in her hand. Chavez-Angles can be seen dropping the fire extinguisher and trying to grab Lane's weapon.

A shot seems to go off before a second officer, identified as Daniel Carli, intervenes. The footage as published by KFOR freezes before the shots go off but several of them can be heard.

Chavez-Angles died on the bus, police said. Carli and Lane remain on restricted duty while authorities investigate the shooting. The Oklahoma County District Attorney will decide whether it was justified.

Officer Heather Lane steps in first with her gun drawn. But Chavez-Angles can be seen dropping the fire extinguisher and trying to grab Lane's weapon (pictured)