The gunman who killed three people and wounded several others at the Kansas plant where he worked had been served a restraining order less than two hours before he opened fire, investigators said Friday.

The shooter, identified as 38-year-old Cedric Ford, showed no indication he'd unleash a rampage when the protection from abuse order was served Thursday afternoon, Harvey County Sheriff T. Walton said. He described Ford as "upset" at the time, but not unusually so.

Still, the sheriff said the order likely triggered the shootings. Kansas Gov. Sam Brownback said preliminary information indicated Hesston Police Chief Doug Schroeder, who did not wait for backup and "seized the situation," rushed into the plant and killed Ford.

Walton said such protection orders are usually filed because there's some type of violence in a relationship, but he didn't disclose the nature of the relationship in question. A Facebook page under the name of a Cedric Ford employed at Excel Industries includes photos posted within the past month of a man posing with a long gun and another of a handgun in a man's lap in a car. Recent posts also include music videos of rappers from Miami, photos of cars and pictures posted in January of a trip to a zoo with children.

Police identified the three people who died as 30-year-old Renee Benjamin, 31-year-old Joshua Higbee, and 44-year-old Brian Sadowsky.

Investigators said Ford shot two people while driving to the Excel Industries plant in Hesston and shot another person in the parking lot before going inside. The gunman then shot 15 others in the lawnmower parts factory at random, killing three of them.

Data curated by FindTheData

Officials from the Bureau of Alcohol, Tobacco, Firearms and Explosives said they were looking into how Ford obtained his guns and ammunition. A SWAT team stormed Ford's mobile home in Newton after the shootings, but it's unclear what investigators found there.

Walton said 200 or 300 other people were still in the factory when Ford was shot dead. A federal law enforcement official tells Fox News that assets from the FBI's Kansas City field office are helping in the investigation.

Ford had several convictions in Florida over the last decade, including for burglary, grand theft, fleeing from an officer, aggravated fleeing, carrying a concealed weapon, all from Broward and Miami-Dade counties.

Online records show Ford was released from the custody of the Florida Department of Corrections in February 2007. It was unclear from the public records whether he had completed probation.

According to the Wichita Eagle, Ford has also had criminal cases in Harvey County, including a misdemeanor conviction in a 2008 fighting or brawling case and various traffic violations from 2014 and 2015.

Walton said Ford had been "in my jail a couple of times before."

Excel was "deeply saddened by the horrific event that occurred yesterday," president and CEO Paul Mullet said. 

The shooting came less than a week after authorities say a man opened fire at several locations in the Kalamazoo, Michigan, area, leaving six people dead and two severely wounded. Authorities haven't disclosed a possible motive in those attacks.

Eleven of the people wounded in Thursday's attack were taken to two Wichita hospitals, where one was in critical condition, five were in serious condition, and five were in fair condition Friday morning, hospital officials said. The others were taken to a Newton hospital, and their conditions weren't immediately available.

Walton said his office served the suspect with the protection from abuse order at around 3:30 p.m., which was about 90 minutes before the first shooting happened.

While driving to the factory, the gunman shot a man on the street in the nearby town of Newton, striking him in the shoulder. A short time later, he shot someone else in the leg at an intersection.

"The shooter proceeded north to Excel Industries in Hesston, where one person was shot in the parking lot before he opened fire inside the building," the department said in a release. "He was seen entering the building with an assault-style long gun."

Dennis Britton Jr. suffered a fracture in his right leg when a bullet went through his buttocks and out his leg. Britton's father, Dennis Britton Sr., who also works at the plant as a welding team leader, said his son was "awake and talking and communicating."

Martin Espinoza, who works at Excel, was in the plant during the attack. He heard people yelling to others to get out of the building, then heard popping, then saw the shooter, a co-worker he described as typically pretty calm.

Espinoza said the shooter pointed a gun at him and pulled the trigger, but the gun was empty. At that point, the gunman got a different gun and Espinoza ran.

"I took off running. He came outside after a few people, shot outside a few times, shot at the officers coming onto the scene at the moment and then reloaded in front of the company," Espinoza told The Associated Press. "After he reloaded he went inside the lobby in front of the building and that is the last I seen him."

Walton said the attacker had an "assault-style" rifle and a pistol.

Hesston is a community of about 3,700 residents about 35 miles north of Wichita.

Excel Industries was founded there in 1960. The company manufactures Hustler and Big Dog mowing equipment and was awarded the Governor's Exporter of the Year award in 2013 from the Kansas Department of Commerce.

Fox News' Matt Dean and The Associated Press contributed to this report.