FOSTER CITY (CBS SF) — A 38-year-old man was shot by police after stabbing an officer during the serving of a search warrant in Foster City on Wednesday evening, according to police.

The man, whose name isn’t yet being released, was shot after officers went to the Eaves apartment complex on Marlin Avenue around 6 p.m. to serve a search and arrest warrant in a felony sex offenses investigation.

READ MORE: Rescue Crews Busy On San Francisco Bay Area Beaches During Tsunami Surge

Officers knocked and gave notice at the apartment, then went inside and found the man armed with a knife in the bathroom, police said.

The suspect stabbed one of the officers, but the officer’s protective gear prevented injury. Officers then “used multiple force options,” including a Taser stun gun and firearm, police said.

READ MORE: French Bulldog Stolen at Gunpoint in Castro Valley

The suspect suffered a single gunshot wound and was taken to a hospital to be treated for his injuries, which are not considered life-threatening.

The shooting will be investigated by the San Mateo County District Attorney’s Office, while Foster City police will continue to investigate the suspect’s alleged criminal actions, police said.

MORE NEWS: Thieves Target License Plates in San Francisco; Rack Up Parking Tickets

© Copyright 2020 CBS Broadcasting Inc. and Bay City News Service. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.