Footage has been released of a gunman who fatally shot his ex-wife and a man at a trucking company before killing three more people in a 40-minute rampage yesterday.
Kern County Sheriff Donny Youngblood identified the gunman as Javier Casarez during a news conference about the shootings that claimed five victims in Bakersfield, Southern California.
Casarez, 54, fatally shot himself as a deputy closed in on him shortly after the shooting.
Court records show a divorce between Casarez and his wife Petra Maribel Bolanos de Casarez was finalized in April.
Court records show Ms Bolanos recently filed for a change involving child support and custody over the couple's two teenage children, with a hearing set for October 11.
Sheriff Youngblood said it appears that Casarez targeted each of his victims, starting with the employee at T&T Trucking.
'It appears to be there's more than just a husband and wife having a fight because other people were targeted,' he said.
'There's a reason for that and we need to find that reason.'
Authorities said Casarez took his ex-wife to the trucking company against her will and then fatally shot 50-year-old Manuel Contreras with a .50-caliber handgun.
He shot his ex-wife and then turned the gun on a second man, 50-year-old Antonio Valadez.
Casarez fired at Mr Valadez as he ran away, but then tracked him down in his car and killed him, the sheriff said.
The gunman then drove to the house of 57-year-old Eliseo Garcia-Cazares, a family friend.
Casarez fatally shot Mr Garcia-Cazares and his daughter, 31-year-old Laura Garcia.
'She may have tried to intervene to keep the suspect from approaching her father, and he shot and killed both of them,' Sheriff Youngblood said.
After the shooting at the Garcia home, Casarez carjacked a woman driving with her child.
The woman and child escaped, and Casarez drove to a highway where a sheriff's deputy saw him.
As the deputy closed in, yelling at Casarez to drop his gun, footage released on Facebook shows Casarez fatally shoot himself in the stomach.
The video shows deputies and paramedics working to save Casarez.
David Bunting, a friend and neighbour of Eliseo Garcia Cazares, said he has no idea why his neighbour was targeted.
He said Garcia was a self-employed truck driver who often spent time with his grandchildren when he wasn't working.
'He's a really nice guy. I can't say enough good things about him,' Mr Bunting said.
'It's kind of a shock because of the kind of a person he was.'
He said his daughter Laura was a mother of four and that most of the Garcias' large family were home at the time of the shooting.
'We are greatly saddened and offer our heartfelt condolence and prayers to those who lost a loved one,' T&T Trucking said in a statement.
Sheriff Youngblood said up to 30 witnesses were helping police with their investigation.
He said Casarez was a permanent resident of the US and the 50-caliber gun used in the shootings was legally purchased in 2004.
Casarez had been arrested for vehicle theft in the 1980s, but he did not have a history of violent crime, the sheriff said.
Officials said there are indications of a domestic violence motive, but investigators don't know what specifically set Casarez off.
Casarez filed for divorce last year because he believed his wife was cheating, according to court papers.
In his petition for divorce filed in December, he accused Petra Maribel Bolanos De Casarez of cheating and asked the judge for his wife's text messages to specific phone numbers. The judge denied the request.
Investigators are looking into whether Casarez's ex-wife may have had a relationship with victims Contreras or Valadez.
Sheriff Youngblood called the shootings devastating, especially for Laura Garcia's children, who may have witnessed their mother's death.
'These young children, when they see this, that's something that will stay with them the rest of their lives,' he said.
'But officers ... they're also not immune to those emotions. Those cases stay with them their entire career, so this has a far-reaching impact on a lot of people in our community and in our department.'