A police officer in Corte Madera shot and wounded a 23-year-old man, who authorities say made suicidal threats and appeared to be reaching for gun in his sweatshirt pocket after officers deployed a stun gun on him.

The incident began about 5:45 p.m. when police dispatchers got a call from a man saying his brother was missing and had threatened suicide, according to the Central Marin Police Authority.

Shortly after, dispatchers got a second call from the same man saying his brother was armed and at his house on San Clemente Drive, police said.

Officers responded to the address and found the suspect, whose name was not immediately released, walking on San Clemente Drive. Officers ordered him to stop, but he took off running, police said.

As the officers chased him on foot, he attempted to pull a handgun from the front pocket of his sweatshirt, officials said. An officer deployed a stun gun on the man, but it apparently had no effect on the man.

Another officer opened fire, hitting the man twice, officials said.

The wounded man was taken to Marin General Hospital and was being treated for non-life-threatening injuries.

Officials said a handgun was recovered at the scene.

The Marin County Sheriff’s Office is conducting an investigation into the shooting. The officer who shot the man was placed on administrative leave, in keeping with protocol for police-involved shootings.

The officer’s name was not immediately released.

Any witnesses can contact Marin County Sheriff’s Detective Shawn Baker at (415) 473-7274.

The incident was the second officer-involved shooting in the Bay Area on Tuesday. About 5 p.m., police in Vacaville shot and critically wounded a man suspected of stabbing two family members, leading officers on a chase and ramming into a driver.

Sarah Ravani is a San Francisco Chronicle staff writer. Email: sravani@sfchronicle.com Twitter: @SarRavani