Three people were shot outside the main gate of the Minnesota State Fair late Monday, capping a chaotic night that also saw a woman hit by a car nearby and, earlier, St. Paul’s 15th homicide of the year.

It was not immediately clear whether the three events were related. But witnesses described a panicked scene outside the state fair, which set an attendance record on Sunday with nearly 250,000 visitors.

Shortly after 10 p.m., a 19-year-old woman was hit by a car less than two blocks from the state fair’s main entrance, said Steve Linders, a spokesman for the St. Paul Police Department. Witnesses told the police there had been a fight or altercation in the area.

A short time later, several shots rang out near the main entrance. Officers found one man on the ground with a bullet wound, and two other men later showed up to hospitals with bullet wounds, Mr. Linders said.