A witness to a double shooting in Salt Lake City chased the suspected gunmen more than a mile from the scene, leading to their arrest, police said Thursday.

Two men were shot about 9:20 a.m. Thursday during “what could have been a home invasion of some kind,” Salt Lake City Police Sgt. Brandon Shearer said .

Police had been called to the area about 20 minutes earlier, when shots were reported at the nearby Jordan River Parkway trail. Then the officers heard gunfire less than a block away, near 500 N. Redwood Road, Shearer said.

The officers found two men wounded outside of a townhouse and shell casings littering the sidewalk and street. The door to the townhouse had been broken open. Three people witnessed the shooting, Shearer said.

Officers had learned a fourth witness had followed the two suspected shooters north, to 1700 N. Redwood, where the suspects abandoned their car. The officers soon found and arrested the suspects. They are males in their late teens or early 20s, Shearer said.

The two victims were in critical and fair condition as of Thursday midday. Police were investigating gang ties because “some of the people involved are known to our gang detectives,” Shearer said.

Police handcuffed a man and drove him away in a police car just after 10 a.m.; Shearer said the man was a witness but did not disclose why officers handcuffed him.

This story will be updated.