A Hayward police officer shot and killed a suspect Friday after the man allegedly reached for a weapon while sitting in a stolen car, authorities said.

The shooting happened at Briergate Way and Vanderbilt Street shortly before 11: 15 a.m.

Police Sgt. Mark Ormsby said an officer saw a suspicious car parked at the corner, ran its license plate and learned that it was stolen.

The officer ordered the man several times to show his hands, but the man instead reached for a weapon, prompting the officer to open fire, Ormsby said, adding the weapon was recovered. Police did not disclose what the weapon was.

The man, whose name was not released, was taken to Eden Medical Center in Castro Valley, where he died.

The shooting is under investigation by police and the Alameda County district attorney's office. The name of the officer involved was not released.

The incident is the second fatal officer-involved shooting in Hayward in less than two weeks.

On Sept. 24, police shot and killed Edgar Alvarez, 24, a known Hayward gang member, after he allegedly reversed his car toward three officers, authorities said.