CASTRO VALLEY (CBS SF) — A man shot by a Berkeley police officer in Castro Valley on Wednesday has been under investigation for narcotics and was in possession of a half-pound of cocaine, police said.

Steven Oliver Moore, 48, of Pittsburg was shot after he allegedly pinned an officer between his car and a Berkeley police vehicle that afternoon, police said.

READ MORE: Authorities: Suspect In Walnut Creek Nordstrom Smash-And-Grab Out On Bail; 2nd Suspect Appears In Court

Berkeley police had tracked Moore to Castro Valley and attempted to detain him near the corner of Center Street and Grove Way at around 5 p.m.

Moore backed up his car, hitting one of the officers and pinning him between his car and an unmarked police car. The second officer shot at Moore, who was still behind the wheel of his car.

Moore was injured and transported to Eden Medical Center for surgery. The officer hit by the car was transported to another hospital and treated for injuries to his hand and leg.

READ MORE: UPDATE: Oakland Police Release Photo of Suspect Vehicle in Lake Merritt Fatal Shooting

The Berkeley officer was released from the hospital later that night.

Officers found a half-pound of cocaine after searching the area where Moore was arrested and a nearby location police say is associated with Moore.

The Alameda County Sheriff’s office is investigating the shooting.

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

MORE NEWS: COVID Vaccine and Booster Resources for Bay Area Residents