A man is charged with attempted murder after he allegedly shot an Illinois State trooper serving a search warrant at the man’s northwest suburban home.

Volodymyr Dragan, 43, allegedly fired shots from inside his Wheeling home on Thursday and struck the trooper, Illinois State Police said. The 32-year-old trooper and five-year veteran with ISP was treated at a hospital and released Friday.

Dragan was arrested at the scene about 6:30 p.m., police said.

Troopers had been serving a search warrant related to an ISP traffic stop about 1:30 a.m. that day on Interstate 294, police said. Dragan is charged in Cook County with attempted murder, aggravated battery with a firearm to a police office, aggravated unlawful restraint and aggravated assault of a police office — all felonies.

“I’m proud of the performance, professionalism and restraint, all Illinois State Police officers displayed during the apprehension of this suspect,” ISP Acting Director Brendan F. Kelly said in a statement.

Dragan is being held without bail at the Cook County Jail, according to the Cook County sheriff’s office. His next court date was set for Tuesday in Rolling Meadows.

Read more on crime, and track the city’s homicides.