DANBURY -- One man was in custody and a second was in surgery at Danbury Hospital late Thursday after a shooting earlier in the day on Rose Street.

The victim, a 24-year-old Danbury man, suffered wounds to his arm and chest from what Police Lt. Matt McNally said was a single shot from a large-caliber handgun.

Police identified the shooter as Eliseo Soto, 33, of Locust Avenue. The two men had been fighting for some time over visitation involving a baby, McNally said.

The round passed through the victim's right arm, then penetrated his chest. He made his way to his uncle's apartment in the Beaver Street housing complex, where he collapsed on the front stoop.

Soto and two other men who were with him fled in a green Jeep, but Soto was taken into custody a few hours later as he left his apartment carrying a bundle of clothing.

Investigators were seeking the two other men and the handgun.

The shooting, which occurred about 5:30 p.m., followed a confrontation between Soto and the victim at the basketball court on Beaver Street. A friend of the victim, who asked not to be identified, said they were playing basketball when the victim was attacked with a length of pipe, presumably by Soto.

After the scuffle, the victim and the friend walked to Rose Street, where they visited the friend's aunt. When they left the aunt's apartment, they were confronted by three men, one of whom pointed a gun at the victim and pulled the trigger.

"It jammed," the friend said, but the gunman cleared the weapon and fired, this time wounding the victim.

A woman who lives on Rose Street, confirmed that version of events, adding that the parties had been yelling at each other before the shot was fired. She confirmed the gun jammed.

"I heard them arguing, but I couldn't say what they were arguing about," she said.

Soto was charged with attempted murder, first-degree assault and criminal possession of a firearm.

McNally said police are still trying to determine the relationship between Soto, the victim, a child and the mother.