ALBANY -- A suspect was taken into custody following an hours-long police standoff Wednesday, after reportedly shooting at two people with a BB gun and then pacing around his apartment with a rifle, authorities said.

About 12:45 a.m., a 911 caller told police that a man was threatening to shoot two people on the street and then shot at them with what appeared to be a BB gun on the corner of Brighton and Kains avenues, police spokeswoman Karina Tindol said. Neither pedestrian was injured in the incident.

The suspect, later identified as Kent Stinson, 62, also told the pedestrians he had a "carbine," Tindol said.

Stinson repeatedly ignored officers' requests to come out of his apartment and was seen by police walking around inside the residence with a rifle in his hand, according to Tindol.

Officers from Berkeley, El Cerrito and Kensington assisted, helping Albany police cordon off the scene, Tindol said. Residents of the apartment building were evacuated to the Albany Community Center as a precaution and part of Brighton Avenue was shut down to traffic.

About 8 a.m., Albany police's Tactical Response Team entered the apartment and ended the standoff peacefully, Tindol said. Officers discovered a .22 caliber rifle and ammunition inside the apartment, along with the BB gun. Police believe the victims' car while the suspect shooting. The suspect was taken into custody without incident.

All residents have been allowed back into their homes, and surrounding streets were reopened.

Contact Erin Ivie at eivie@bayareanewsgroup.com. Follow her at Twitter.com/erin_ivie.