OAKLAND -- A man suspected of firing shots at a San Leandro apartment complex Saturday was shot at by a police officer who stopped him in East Oakland, authorities said.

While neither the suspect nor the three other people in his car were hit by the San Leandro Police Department officer's gunfire, the unidentified man was arrested Monday afternoon after police say he pulled out a gun while being pulled over.

In the days since the Saturday shooting, investigators developed information about the men suspected of firing shots in the 2700 block of San Leandro Blvd., San Leandro police Lt. Randy Brandt said. No one was injured in that shooting.

About 1:38 p.m., a San Leandro officer spotted the car associated with the earlier shooting in the area of St. Elmo Drive and Stoneford Avenue in East Oakland, and pulled the car over with four suspects inside, Brandt said. When the officer approached the driver of the car, the suspect showed him he had a firearm.

The officer, fearing for his safety, fired at least one shot in the direction of the suspect, Brandt said. The man dropped his gun and tried to run away, but was quickly caught by the officer and his police dog.

The name of the suspect has not been released, nor have the names of the others in the car, Brandt said. It was not immediately known if the other people in the car were suspects in the Saturday shooting.

The officer-involved shooting is being investigated by Oakland Police.

Contact Natalie Neysa Alund at nalund@bayareanewsgroup.com. Contact Erin Ivie at eivie@bayareanewsgroup.com.