A gunman fatally shot three people on Friday morning, including a woman who was hanging Christmas decorations inside a church, during a bloody rampage that spread terror along a stretch of two-lane country road in central Pennsylvania.

The gunman was shot and killed by state troopers after he opened fire at officers and rammed his pickup truck into a patrol car. He had multiple firearms, but the authorities have not yet disclosed what type.

Three troopers were wounded, but not seriously, officials said.

The armed man was not believed to have been related to any of the victims. He was identified only as a resident of Blair County, where the shootings occurred.

Law enforcement officials were stunned by the outburst of violence in the largely rural, agricultural community near Hollidaysburg, Pa., about 40 miles southwest of Pennsylvania State University and 100 miles east of Pittsburgh.