A Hayward officer was injured in a shootout with a suspect, who also was wounded, police said late Monday night.
The shooting occurred in the 100 block of Hewitt Place in Hayward about 7 p.m.
The officer suffered a non-life threatening injury and was later released after being treated at a nearby hospital, according to police.
The officer fired her weapon and injured the suspect, police said. A sergeant with the department said the officer fired her gun because she feared for her life.
The shooting is under investigation, and there is no more risk to the community, police said.
"It's strange," neighbor Cynthia Millan said. "This has never happened before. It's quiet. I've been living here all my life. It's very quiet. We know mostly everybody so to see that happen here, it's kind of sad."
No further details were available.
Editor's Note: A previous version of this story incorrectly identified the officer.