HAYWARD (CBS SF) — A person who allegedly shot at an officer early Sunday morning in Hayward was driving a car that might be connected with another shooting on Saturday night, police said.

Shortly before 2 a.m. Sunday, an officer pulled over a car in the area near Winton Avenue and Soto Road, Hayward police Sgt. Tasha DeCosta said.

READ MORE: Update: Firefighters Battle Brushfire Near San Jose Municipal Golf Course

The suspect stepped out of the car and shot at the officer, DeCosta said.

The officer returned fire and was not injured in the incident, according to police.

READ MORE: Three Men Stranded On Rocks At Pescadero State Beach Rescued

The suspect was driving a car that might be connected with a shooting that happened around 10 p.m. Saturday, DeCosta said.

Police said they are still searching for the suspect and residents are being asked to shelter in place.

Anyone who sees anything suspicious in the area is asked to call Hayward police at (510) 293-7000.

MORE NEWS: Panel Selects Archie Willams as New Name for Drake High in Marin County

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