LA MIRADA ( — An armed robber was shot and killed Tuesday at the end of a three-hour standoff with a sheriff’s SWAT team at a gas station convenience store in La Mirada.

The standoff began about 9:15 p.m. Monday at a 24-hour Arco gas station at 13550 S. Beach Blvd. There may have been customers or employees inside the store during the robbery, but none were reported to be inside during the standoff, Los Angeles County sheriff’s spokesman Deputy Kelvin Moody said.

READ MORE: Standoff Continues After Pursuit Ends In Palmdale, 1 Person Taken Into Custody

The suspect, who was in his 40s, died at the scene, coroner’s Assistant Chief Ed Winter said. His name was withheld, pending notification of his relatives.

The standoff ended about 12:25 a.m., when the suspect was shot after deputies gave several verbal commands to the suspect to drop the weapon, Moody said. While the suspect was inside the story he fired at least one round through the front window of the store, according to a sheriff’s statement.

READ MORE: Time Is Up For Lucky Lottery Winner To Claim $26M Prize

When the suspect stepped outside again, he pointed and fired again at deputies. At that point, the suspect was shot by two deputies, sheriff’s officials said.

No deputies were injured in the standoff.

The shooting will be investigated by the sheriff’s homicide and internal affairs bureau and the Los Angeles County District Attorney’s Office.

MORE NEWS: 2 LAPD Officers Face Disciplinary Hearings After Firing Less-Than-Lethal Projectiles At 2 Protesters Last Summer

(©2016 CBS Local Media, a division of CBS Radio Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services contributed to this report.)