LONG BEACH (CBSLA) — Police shot and killed a man during an armed robbery attempt at a 7-Eleven in Long Beach late Thursday night.

At around 11:30 p.m., Long Beach police detectives were conducting surveillance in the 5100 block of Each Pacific Coast Highway on a Nissan Altima suspected in several armed robberies which had occurred earlier this week. Police witnessed a man with a gun get out of the car, which was parked on a street behind the 7-Eleven, and go into the convenience store.

Detectives followed the suspect in, and after he ignored orders to drop his gun, they shot him, police said. He died at the scene. His name was not released. His gun was recovered by police.

No officers were hurt. One employee and one customer were inside the 7-Eleven when the shooting occurred.

Meanwhile, a passenger who remained behind in the Altima when the suspect entered the store was taken into custody on robbery charges. He was identified as 22-year-old Devontae Moore.

The Altima was suspected of having been used in at least five robberies and one attempted robbery in Long Beach that took place between Sunday and Tuesday, along with several more robberies outside Long Beach city limits, police said.

Authorities shut down the PCH between Anaheim Street and Granada Avenue, as well as Clark Street between Anaheim and Atherton streets, into Friday morning while they investigated the shooting scene.

The suspect and his passenger were not immediately identified.

It’s unclear exactly how many officers opened fire on the suspect. The Los Angeles County District Attorney’s Office will be investigating.

Moore is being held on $350,000 bail, police said.