By Jason Hanna and AnneClaire Stapleton, CNN
A person who was fighting with police along Interstate 10 near Phoenix took an officer's gun and shot two Arizona state troopers Wednesday night, killing one of them, authorities said.
Trooper Tyler Edenhofer -- an officer who was in training -- was killed, and Trooper Dalin Dorris was injured in the shooting in Avondale, just west of the capital, police say.
The shooting happened after troopers were called to I-10 around 10:20 p.m. about a person who was "in and out of the roadway, throwing things at cars," said Col. Frank Milstead, director of the Arizona Department of Public Safety.
The suspect, whom police have not named, struggled with troopers and police officers from the city of Goodyear, Milstead said Thursday morning.
"During the struggle, one of the troopers lost his firearm to the subject. The subject fired at least two rounds," hitting Dorris and Edenhofer, he said.
"Our thoughts and prayers are with his family. Lives have been shattered and ruined, and we're all in a little bit of a state of shock this morning," Milstead said.
Police have not said whether the suspect is in custody.
Dorris was recovering Thursday in a hospital, Milstead said.
Before police arrived, "some citizens pulled over to the right-hand side to actually get the subject out of the roadway," Milstead said.
Edenhofer graduated from the state Department of Public Safety's academy on May 4, he said. Dorris has been with the department since 2005.