A CHP dispatcher confirmed the shootout and the fatalities happened about at about 5:30 p.m. (0030 GMT) in Riverside, California, about 55 miles (86 km) east of Los Angeles.
Initial reports from local news media at the scene say that a CHP officer on a motorcycle made a routine traffic stop, and the suspect grabbed a rifle from the vehicle and started shooting.
Dozens of rounds were fired, according to local media, and motorists stopped in traffic fled their vehicles and ran for cover from the gun battle.
The conditions of the two wounded officers were not disclosed.
The gunman was fatally wounded and taken to a local hospital where he was pronounced dead. Police are still investigating a motive.
(Production: Bob Mezan)