CHARLESTON, WV (WVNS) – A West Virginia man accused of fatally shooting three co-workers at a western Maryland machine shop remained under police guard at a hospital Friday, but authorities said a Maryland state trooper injured in a shootout with the suspect was treated and released.

The 25-year veteran of the Maryland State Police was shot when police said the fleeing suspect fired multiple rounds at troopers who tracked him down in western Maryland. At least one trooper returned fire, striking the suspect, state police said. The injured trooper and suspect were both taken to a hospital.

The trooper has been released, but the suspect remained under police guard while undergoing treatment, police said late Thursday. Charges are pending consultation with the Washington County State’s Attorney’s Office, police said. The troopers involved in the shooting will be placed on administrative duty while an investigation is conducted.

Washington County Sheriff Doug Mullendore said three men were found dead at Columbia Machine Inc. in Smithsburg on Thursday afternoon and a fourth was critically injured. The victims and suspect were all employees at the facility, he said. The sheriff identified those killed in the shooting as Mark Alan Frey, 50; Charles Edward Minnick Jr., 31; and Joshua Robert Wallace, 30.

Reached by telephone Friday, Nelson Michael, the father of Brandon Michael, 42, who was wounded in the machine shop shooting, said his son was still in the hospital, but he didn’t know more about his condition.

“He’s surviving,” he said. “I’m glad he’s alive, but it’s going to work on his nerves. I know that.”

Nelson Michael said he didn’t know why the gunman shot the victims.

“I’m not saying any more. I’m just glad my son’s alive, and I feel so bad for the families of the other ones,” he said.

The shooting suspect was identified as a 23-year-old man who lives in West Virginia, but the sheriff’s office said his name wouldn’t be released until charging documents are filed. Authorities declined to release a motive.

Mullendore said the suspect used a semiautomatic handgun, which was recovered after the shootout.

Smithsburg, a community of nearly 3,000 people, is just west of the Camp David presidential retreat and about 75 miles (120 kilometers) northwest of Baltimore. The manufacturing facility was in a sparsely populated area northeast of the town’s center with a church, several businesses and farmland nearby.

Columbia Machine manufactures equipment for concrete products, and its Smithsburg location builds molds and works on parts and repairs for other plants. The company’s CEO, Rick Goode, issued a statement calling the deaths of three employees and the wounding of a fourth tragic.

“Our highest priority during this tragic event is the safety and wellbeing of our employees and their families,” he said.

Frey, one of the victims, lived about a half-mile from Dennis Stouffer.

He described Frey as “a solid individual” and “a good guy.”

,Stouffer said he would see Frey at the mailbox when he drove by. Stouffer said in a phone interview that Frey once made meat hooks for a deer-meat processing shop he used to run in the small rural community of Smithsburg.

“He didn’t make a bunch of noise or anything. He just went about his work,” Stouffer said.

Speaking late Friday morning, Stouffer said the reason for the shooting remained “a big mystery” to people in the community.

“We’re all in shock and disbelief, and that’s an understatement,” Stouffer said.

As mass shootings continue to fuel debate about gun control around the nation, Stouffer said the Maryland deaths did not change his mind about Second Amendment rights.

“It’s most unfortunate, but you always have to be prepared,” Stouffer said. “Whether it’s church property or your own property or wherever you go, you’re not going to prevent criminals from having guns by passing gun-control laws.”