A road-rage shooting left a bystander in critical condition with a bullet to the head — one victim in a trio of early Sunday shootings that left one dead and another man fighting for his life, according to cops.

The 58-year-old pedestrian was hit by a stray bullet as shots rang out following a collision between a white Kia Sorento and a blue Infiniti close to Barclays Center at around 3.45 a.m., the NYPD said.

The Infiniti’s 45-year-old driver followed the Kia, then someone jumped out and opened fire on 4th Avenue and Pacific Street, an NYPD spokesperson said.

The driver called 911 to say that he was being shot at, according to police, with no reports of the driver getting hit.

The 58-year-old man shot in the head had just been a bystander, the spokesperson said, although the investigation is ongoing. He was raced to New York-Presbyterian Brooklyn Methodist Hospital where he is not expected to survive, sources said.

Witness Baca DeLino said he heard “shots and yelling and then cars pulling out fast.”

“All they left was a poor old man on the ground shot. I heard he had nothing to do with it,” DeLino told The Post, saying, “This has to stop.”

Police may have the suspects’ cars on video and are trying to pull license plate details from the images, one source told The Post. No arrests had been made, the NYPD said.

Earlier, a 22-year-old man who was gunned down at Watkins Street and Livonia Avenue in Brownsville just minutes before 1 a.m., the NYPD said.

He was hit in the body, arm and leg and rushed by ambulance to Brookdale Hospital, where he was pronounced dead on arrival. He was not identified, pending family notification, cops said.

Witnesses said the victim was one of a group who had tried to crash a 21st birthday party at a building used as a local community center.

“Nobody said they knew him,” the 50-year-old witness said of the victim, part of a group “not invited” to the “elegant” bash.

“They kept hanging around outside trying to talk to the women,” he said. “Nobody heard the shots. The music was playing. Nobody knew inside until the cops came in and shut it down,” he said.

A gun was recovered at the scene and a person of interest taken into custody, the NYPD said of the ongoing investigation.

At just after 2.30 a.m., a 42-year-old man was shot in the back less than a mile away during a dispute on East 95th Street and Clarkson Ave also in Brownsville, police said. He was taken to Kings County Hospital in life-threatening condition.

The trio of shootings come amid an alarming surge in gunplay in the Big Apple this year, largely centered on Brooklyn.

Additional reporting by Lee Brown