MILWAUKEE, Wis. — Milwaukee Mayor Tom Barrett was in the hospital on Sunday after he was attacked by a person using a metal pipe as the mayor and his family left the Wisconsin State Fair.

Barrett was in stable condition Sunday at a local hospital and was alert and talking when he arrived there on Saturday night, the Milwaukee Police Department said in a statement. It did not provide more details, and a spokeswoman for the police department did not have any further information.

Police said Barrett was leaving the state fair on Saturday night when he heard a woman crying out for help in the city of West Allis, about six miles west of Milwaukee.

Police said Barrett began calling 911 when the suspect who was attacking the woman charged at the mayor and began hitting him with a metal pipe. The suspect then fled the scene, authorities said.

The woman was not injured, and police were still searching for the suspect, who has a criminal arrest record, authorities said.