(FOX40.COM) — Six people have been arrested in connection with the shooting death of a man in mid-August who allegedly was going to sell marijuana to some of the suspects, according to West Sacramento Police.

The agency said Monday that four adults and two minors were detained in connection with the robbery attempt on Aug. 12 that resulted in a homicide.

Police say that, on that day, officers responded to a single-vehicle crash on Reed Avenue, close to Interstate 80.

The 29-year-old driver was initially thought to have died from the crash, but an autopsy revealed that he had been shot, which likely caused him to crash and led to his death.

Investigators were able to identify multiple suspects and determined that the victim was going to sell about 20 lbs. of marijuana, worth about $40,000, a West Sacramento Police detective told FOX40.com.

The suspects “laid in wait, springing on the victim,” and shot him as he fled in his vehicle, eventually crashing.

Police say that a casing from the shooting was found to be in connection with an unrelated home invasion and an unrelated shooting into a house in the Sacramento area. Both of those crimes are still under investigation.

One suspect in the shooting was detained in Sparks, Nevada, while another one was detained in Sacramento County. Police said two more suspects were detained in West Sacramento.