CNN  — 

Police in Baton Rouge, Louisiana, said Sunday the killings of two black men in separate incidents last week are linked and may have been racially motivated.

The victims, 49-year-old Donald Smart and 59-year-old Bruce Cofield, were shot to death two days and a couple of miles apart, Baton Rouge Police Sgt. L’Jean Mckneely said.

In both instances, the suspect shot the victim from a car, Mckneely said. After the victims fell, the suspect got out of the car, walked to the victims and fired several more shots.

Shell casings found at the scenes, the descriptions of the shooter’s car and witness accounts helped investigators link the incidents, Mckneely said.

A 23-year-old white man from Baton Rouge was taken into custody on drug-related charges Saturday after police stopped a car matching the description of the vehicle used in the shootings.

The man was released from jail Sunday after posting a $3,500 bond, Savannah Jones with the East Baton Rouge Sheriff’s office told CNN.

Smart’s body was found late Thursday on Alaska Street, around the corner from his home, police said. Cofield, who was believed to be homeless, was killed on Florida Street, about two miles to the north.

CNN’s Janet DiGiacomo contributed to this report.