A gunman fatally shot a man and wounded a police officer during a 6 1/2-hour standoff that ended in the suspect's apparent suicide, authorities said.

Officers were called to a residence near downtown Glasgow in south-central Kentucky on Wednesday afternoon on a report of shots fired. An officer found a man fatally wounded outside the house and was then fired on, Trooper Todd Holder said.

Glasgow Officer J.D. Walden was shot in the back, police said. He was released from a hospital after treatment, authorities said.

During the siege, police sent in two camera-equipped robots and determined the first floor was clear. Officers then entered the house and found the suspect in an upstairs room, dead of an apparently self-inflicted gunshot wound, Police Lt. Maxie Murray said.

The identities of the man found dead outside the house and the gunman were not released.

Glasgow, in Barren County, is about 100 miles south of Louisville.

It was the second time in a week a police officer had been shot in Kentucky.

Clay City Police Chief Randy Lacy was fatally shot on June 13 in his squad car while making a DUI arrest. Lacy was the only officer in the eastern Kentucky police department.