By Sonia Dasgupta

TIMONIUM, Md. (WJZ) — An off-duty police officer apprehended an armed suspect after a failed robbery of a Baltimore County Panera.

According to Baltimore County Police, the attempted robbery occurred around 1:15 p.m. Wednesday in the 2100 block of York Road in Timonium just south of the Maryland State Fairgrounds.

READ MORE: New Plasma Donation Center Opens In Towson

The armed man attempted to robbed the Panera, but when employees told him they wouldn’t give him anything, he left the store.

An off-duty Baltimore County Police sergeant who was still in uniform was eating inside.

When the suspect left the Panera, employees told the officer what happened.

READ MORE: Ravens, M&T Bank Stadium Holding Job Fair For Stadium Workers

He was able to take the suspect into custody without further incident.

The 29-year-old man will be charged.

Police said he is also suspected in the robbery of a Game Stop on York Road around 6:30 p.m. Tuesday.

MORE NEWS: COVID-19 In Maryland: 5 Deaths Reported Saturday As Hospitalizations Drop Below 200

Follow @WJZ on Twitter and like WJZ-TV | CBS Baltimore on Facebook