FONTANA (AP) — A Fontana police officer shot a passenger who pointed a gun during a traffic stop on Monday.

The officer wasn’t hurt.

READ MORE: Parolee Aariel Maynor Arrested In Connection With Jacqueline Avant Killing After Shooting Himself In The Foot

Sgt. Robert Morris said in a news release that the officer stopped a vehicle for an undisclosed traffic violation. As he approached the vehicle, he saw the front passenger was holding a handgun.

The passenger, 35-year-old Enrique Mendez, then pointed the weapon at the officer.

The officer fired several rounds and wounded Mendez, who is hospitalized in unknown condition.

READ MORE: COVID Omicron Variant Detected In Vaccinated Minnesotan Who Traveled To NYC Anime Convention

Morris said he will be booked for investigation of attempted murder of a police officer.

Three other people in the vehicle weren’t hurt.

Records show Mendez was recently released under California’s prison realignment plan to eliminate overcrowding.

The officer’s name is being withheld.

MORE NEWS: Caught On Video: Car-To-Car Shooting In Del Rey Sends Bullet Into Occupied Apartment, Crashes Into Pickup Truck

(© Copyright 2012 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)