ODESSA, Texas (AP) — Authorities say a mass shooting in West Texas began when a man being pulled over by state troopers started shooting through the rear window of his car with a rifle.

Texas Department of Public Safety spokeswoman Katherine Cesinger says Saturday that one of two state troopers conducting the traffic stop was shot. She says the suspect then fled “and continued shooting innocent people,” including two other police officers.

Authorities say a total of three law enforcement officers were shot. At least five people died. There were at least 21 civilian gunshot victims.

Cesinger says the trooper is in serious but stable condition. The two police officers are in stable condition at a local hospital.

Cesinger says no one else was in the shooter’s vehicle.