PANA — A 25-year-old Christian County man was shot and killed during a standoff with an Illinois State Police SWAT team Tuesday morning after he'd earlier shot a Pana police officer.

The dead gunman was identified as Josh A. Edwards of Pana.

The injured officer, whose identity was not released, sustained a non-life-threatening wound to his upper arm and was in stable condition at Memorial Medical Center in Springfield, authorities said.

The incident occurred about 7 miles west of Pana in the vicinity of county roads 1498 East and 350 North about 3:15 a.m. Tuesday.

Christian County Sheriff Bruce Kettelkamp said deputies were sent to that location at the request of the Fayette County Sheriff's Office to check on a man they believed might be armed and dangerous.

When the deputies arrived at the house, they saw what appeared to be drug paraphernalia and asked for assistance from the Central Illinois Enforcement Group, Kettelkamp said. One of the officers who responded as part of the group is a member of the Pana Police Department.

The officers confronted the gunman, at which point he allegedly shot at them and struck the Pana officer. At least one of the deputies returned fire, and possibly struck the gunman, causing a minor injury, Kettelkamp said.

The man then fled to the roof of the house, and the state police SWAT team was summoned to help with negotiations in an effort to end the standoff peacefully.

Officers negotiated with the man for several hours. But at some point, he set the roof on fire and allegedly fired his weapon in the direction of officers.

SWAT team members returned fire, killing the man, state police said in a news release.

The man was pronounced dead at the scene at 8:23 a.m. by the Christian County Coroner's Office. An autopsy is set for Wednesday afternoon, according to Coroner Amy Calvert Winans.

Three other people were found inside the house and were detained for questioning. No further information about their status was released.

Why the man fired at officers hadn't been determined, though police were familiar with the residence.

“We know that house,” Kettelkamp said. “We've been looking at that house for several months for meth activity.”

Kettelkamp has been sheriff since 2010. He said he was unaware of any previous officer-related shootings in Christian County during his time as sheriff.

State police spokeswoman Monique Bond said the SWAT team officers involved in the shooting are on administrative duty pending the outcome of a review by the Illinois State Police Division of Internal Investigation.

Such action is standard procedure whenever a trooper fires his or her weapon, Bond said.