The man suspected of killing three people at the Kansas lawn-mower factory where he worked was served 90 minutes before his shooting spree with a court order to stay away from a woman who said he had abused her, authorities said on Friday.

The suspect, identified as Cedric Ford, 38, was armed with a .223-caliber assault-style rifle and a pistol as he fired randomly at coworkers and others over about 30 minutes on Thursday. Fourteen people were wounded.

The first police officer to reach the scene, Hesston Police Chief Doug Schroeder, killed Ford in an exchange of gunfire, said police secretary Jeannine Hoheisel. Hesston is a town of about 4,000 people about 36 miles (60 km) north of Wichita.