A long prison sentence awaits a 28-year-old man who fatally shot one man in the head as the victim sat in his pickup truck outside his St. Paul home, then wounded another man four days later while he was on the way to church.

Kavion Jayvon Barnett, of St. Paul, agreed Monday in Ramsey County District Court to plead guilty to second-degree murder in connection with the shooting of James J. King Sr. at about 9:45 a.m. on Feb. 9, 2022, in the 200 block of Front Avenue. King died on March 1.

Also Monday, Barnett admitted to second-degree assault and drive-by shooting stemming from his wounding a man in the arm on the Earl Street overpass on Feb. 13, 2022, as the man was driving his family to church in St. Paul.

The plea agreements between the defense and the prosecution call for Barnett to receive a sentence of 22⅓ years. He is expected to serve two-thirds of that time in prison, minus time in jail since his arrest, and the balance on supervised release. An agreed-upon sentence of roughly 3½ years for the second shooting will run consecutive to the longer term. Barnett is scheduled to be sentenced on April 22 .

According to criminal complaints:

After King was discovered in his drive with the gunshot wound to the head, police gathered a .45-caliber casing that would end up matching the Earl Street shooting.

A witness to King's shooting reported seeing the driver of a minivan pointing a gun out of the driver's side window before he heard a gunshot. Police traced the minivan to Barnett, and surveillance video revealed it was also used in the Earl Street shooting. In the video, an officer identified Barnett and another man, Delaquay Williams, getting out of the minivan and leaving the vehicle in the middle of the road. Officers found fingerprints on the minivan from Barnett and Williams.

Barnett was arrested, and a gun was found in a diaper bag at his home. He said he didn't mean to kill King, only to scare him after the two had confrontations about loud music. When asked about the Earl Street shooting, Barnett said he saw a car on the bridge slow down and he shot "because he thought it was an opposing gang member in the car," the complaint said.

Williams, 27, of St. Paul, is charged with second-degree intentional murder in the death of Regis A. Jones, 31, of St. Paul, who was shot in the head and died on March 3, 2022, in the 600 block of Blair Avenue. Casings determined the same gun was used in all three shootings. Williams remains jailed and is due back in court on May 31.