A former police officer in Florida was sentenced Thursday to 25 years in prison for fatally shooting a black man who had been awaiting help on a highway more than three years ago.

“This has been a heartbreaking case,” Judge Joseph Marx said in sentencing the former officer, Nouman K. Raja, for the two counts a jury found him guilty of last month: manslaughter by culpable negligence and attempted first-degree murder with a firearm.

Mr. Raja, 41, who had faced a maximum penalty of life in prison in the fatal shooting of Corey Jones, received a 25-year term for each count. The sentences will be served concurrently.

In asking the judge to hand down the maximum sentence, Adrienne Ellis, the chief assistant state’s attorney, said that Mr. Jones, 31, “had done nothing wrong that night.”.