The California Highway Patrol says one officer is dead, another in critical condition and a third has minor injuries after a shootout that also killed the gunman.

Dozens of gunshots were fired Monday near Interstate 215 in Riverside, east of Los Angeles.

CHP Assistant Chief Scott Parker says an officer who pulled over a white pickup was filling out impound paperwork when the driver pulled a rifle from the truck and began shooting.

The officer was fatally wounded but managed to call for help. Authorities say CHP officers, Riverside police and sheriff's deputies arrived and continued trading gunfire. Two other CHP officers were hit before the gunman was killed.

Police withheld the shooter's name and say they don't have a motive for the attack.

Riverside police spokesman Ryan Railsback also says someone in another car was hit by glass that caused minor injuries.

(Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)