A man who shot and killed his estranged wife Thursday morning in downtown Fairfax was then fatally wounded in a shootout with police, Osage County officials said.

Teresa Robertson died outside her Main Street flower shop/beauty parlor after apparently being shot by her husband, 54-year-old Kenneth R. Robertson, who was pronounced dead at a local hospital following the gunfight which ensued, the officials said.

The Osage County Sheriff’s Office in Pawhuska received a 911 call at approximately 8:10 a.m. reporting that a woman was on the ground — and bleeding profusely — near the bank in downtown Fairfax, OCSO officials said. As the initial call was being transferred to emergency medical responders, a second 911 caller advised that a gunman was inside of Fairfax City Hall, the sheriff’s office added.

Sheriff Eddie Virden said Kenneth Robertson apparently had been given a ride to his wife’s place of business. Shortly after he arrived, Teresa Robertson sustained a gunshot wound inside the building, but she ran out into the street before collapsing, the sheriff said.

The man — who Virden said was armed with a rifle — walked to City Hall where he instructed employees to contact Fairfax Chief of Police David Bradley,” Virden said, adding he had apparently fired two shots inside the city building.

Local police — including the chief — responded to the scene and were immediately shot at by the man, who reportedly screamed at them as he was exiting city hall. When Robertson’s attention was directed toward another officer at the scene, Bradley returned fire and incapacitated the gunman, according to the sheriff.

Teresa Robertson was pronounced dead at the downtown scene following valiant attempts by emergency responders to revive the 51-year-old business owner. After being transported to the local hospital, Kenneth Robertson succumbed to his wounds shortly before noon, officials said.

Witnesses identified Robertson’s weapon as a .30-30 rifle. The sheriff expressed appreciation for the assistance provided by area law enforcement agencies.

Virden said the Oklahoma State Bureau of Investigation will be conducting an investigation, which he said is standard procedure for officer-involved shootings.

Court records show Teresa Robertson obtained a protective order against Kenneth Robertson on Feb. 6 and had initiated divorce proceedings on Friday, Feb. 17. A hearing on the protective order had been scheduled for Monday. She had previously filed for divorce in late 2015, but the case was dismissed after the two apparently reconciled. The estranged couple reportedly have two teenaged children — ages 16 and 13.

Oklahoma Department of Corrections records Robertson served 1 1/2 years in prison for a 1998 conviction on Pawnee County charges of first-degree burglary and assault with a dangerous weapon. He remained on probation until 2005 for suspended sentences stemming from those charges.