This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

OCEANSIDE, Calif. — A 26-year-old Chula Vista man is in custody after a police officer walked in on an armed robbery at a 7-Eleven early Monday.

Oceanside police said Officer Reymundo Pena walked inside 7-Eleven on Mission Avenue near Canyon Drive around 1 a.m. and saw a man with a gun. The suspect had demanded cash and store merchandise from clerks.

When the suspect saw Officer Pena, he ran out of the store, dropped the cash and merchandise and hopped a fence leading to an Oceanside Unified School District bus parking lot.

Police spokesperson Tom Bussey said Officer Pena chased the suspect and called for backup. A drone and K-9s helped police take Francisco Javier Rodriguez into custody. Rodriguez was on parole, according to police.

Check back for updates on this developing story.