RICHMOND (CBS SF) — Police arrested a 12-year-old boy Thursday evening on suspicion of robbery after finding a BB gun tucked into his waistband that was spray-painted black to look like a real gun, police said Friday.

Officers on patrol in the area of 23rd Street and Garvin Avenue were on the lookout for two suspects wanted in several recent robberies in the area, police said.

READ MORE: California Healthcare Workers Say Ambulances Wait Hours With Patients Outside Hospitals

Police said the suspects worked in pairs, were armed with guns, and appeared to be juveniles or young adults.

Around 10:45 p.m., the officers spotted two young males riding their bicycles in what police said was an “unsafe manner.” The officers stopped the two bicyclists and one of them fled, police said.

READ MORE: Possible Explosive Device Outside Oakland Courthouse Forces Evacuations, Street Closures

The other, a 12-year-old boy, stayed on scene and officers were able to recover a gun in his waistband. Police said the gun turned out to be a semi-automatic BB pistol that was painted black to look real.

A victim in one of the recent robberies was called to the scene and positively identified the boy as one of the people who robbed her, police said.

Police arrested the juvenile on suspicion of robbery.

MORE NEWS: Fire Burns At Residential Building in San Francisco Mission District

© Copyright 2015 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.