By CBSLA Staff

HEMET (CBSLA) — A 20-year-old man has been arrested after allegedly shooting a Hemet police officer Monday morning.

(credit: Hemet Police Department)

Robert Moran was taken into custody after Hemet police say he fired on an officer while driving through a fast food parking lot on West Florida Avenue, near Golden Village. A handgun was recovered from inside his car, police said.

READ MORE: 14 Rescued After Boat Sinks Off Newport Harbor

Two officers had responded to the area on the report of someone shooting a gun in the area at about 4 a.m. As the person who reported the shooting was speaking to one of the officers, the shooter was spotted in a vehicle traveling through the parking lot. Police say that’s when the suspect fired at the officer from his vehicle.

READ MORE: Garcetti Unveils 'Justice Budget' At State Of The City

The officer, a 9-month veteran of the department, was hit once in the leg and did not return fire. The suspect drove through the parking lot and turned onto Florida Avenue, where he was stopped by other officers.

MORE NEWS: Paul Flores Pleads Not Guilty To Murder Charges In 1996 Disappearance Of Kristin Smart

Moran was arrested on suspicion of attempted murder of a peace officer and is being held on $1 million bail.