OAKLAND (CBS SF) — A police officer shot a male suspect in Oakland Friday night after he allegedly attacked officers when they attempted to detain him for urinating in public, police said.

Officers attempted to detain the man, an Oakland resident, for public urination in the 2100 block of Fruitvale Avenue at around 7:40 p.m.

READ MORE: Not Guilty Plea In Video-Taped Attack On Uber Driver Subhakar Khadka

Police said the man became violent, assaulted an officer, and attacked the officers with a long, metal blunt object.

An officer pulled out her firearm and shot the suspect to defend the officers, according to police.

READ MORE: CDC Recommends Pausing Johnson & Johnson COVID-19 Vaccine Shots

The suspect was taken to Alameda County Medical Center for his injuries and was expected to survive.

An officer was also injured during the incident. She was taken to Summit Hospital and was treated and released.

Anyone with information regarding this incident is asked to call the department’s homicide section at (510) 238-3821.

MORE NEWS: Lawsuit Alleges Low-Income Homeowners Were Manipulated Into Getting PACE Green-Energy Loans

(Copyright 2011 by CBS San Francisco. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)