TURLOCK (CBS13) — A man is in custody accused of impersonating an officer to get into a motel room.

The Stanislaus County Sheriff’s Office says Alejandro Madrigal, 35, went to a motel on North Golden State Boulevard in Turlock. He reportedly showed a gold-colored badge to a housekeeper, saying he was an undercover cop and needed to be let into a room.

READ MORE: Sacramento County Tackles Zip Code Vaccine Disparities

The housekeeper then notified the front desk, who called deputies to the motel.

READ MORE: Feds' Boogaloo Indictment Details Inside of Northern California Extremist Group

When deputies arrived at the motel Madrigal was gone, but he was located just before 11 p.m. Wednesday in the parking lot of a nearby restaurant.

MORE NEWS: Stockton Teen, 14, Shot While Driving Left Paralyzed

Madrigal is facing charges of impersonating a police officer.