A Dorchester man was fatally shot early Saturday while driving in Brockton, Plymouth County prosecutors said. At 2:25 a.m. Brockton police received a call for a man shot on Grove Street. Officers found the man inside a vehicle near the fence that surrounds Landerholm Electric Co. The victim, identified as Christopher Rosario, 25, was pronounced dead at the scene, the Plymouth district attorney’s office said in a statement. Rosario had been at the Morabeza Restaurant & Pub in Brockton, according to the statement. After closing, he and a passenger were traveling east on Grove Street when a vehicle pulled along the driver’s side and someone inside began shooting. Rosario was struck; the passenger was uninjured, a district attorney’s spokeswoman said. Anyone with information is asked to call State Police at 508-923-4205 or Brockton police at 508-941-0234.Globe correspondent Nicholas Jacques contributed to this report. Anne Steele can be reached at firstname.lastname@example.org. Follow her on Twitter @AnneMarieSteele.