PHOTO: Emergency responders respond to a fire at the house of the suspect of a shooting, May 26, 2021, after multiple people were killed at a rail yard in California's Bay Area.
2:54
Amy Osborne/AFP via Getty Images
San Jose community mourns 9 victims of mass shooting

The man who allegedly gunned down nine people in San Jose, California, on Wednesday planned the massacre and "was prepared to use his firearms to take as many lives as he possibly could," the Santa Clara County Sheriff's Department said Friday.

At Samuel Cassidy's home, investigators found multiple cans of gasoline, suspected Molotov cocktails, 12 guns and about 22,000 rounds of various types of ammunition, the sheriff's office said Friday.

PHOTO: Photos released by the Santa Clara Sheriff Department show firearms and ammunition found in the home of San Jose mass shooting suspect Sam Cassidy.
Santa Clara Sheriff Department
Photos released by the Santa Clara Sheriff Department show firearms and ammunition found in the home of San Jose mass shooting suspect Sam Cassidy.
PHOTO: Photos released by the Santa Clara Sheriff Department show firearms and ammunition found in the home of San Jose mass shooting suspect Sam Cassidy.
Santa Clara Sheriff Department
Photos released by the Santa Clara Sheriff Department show firearms and ammunition found in the home of San Jose mass shooting suspect Sam Cassidy.

Authorities do not have a motive for why Cassidy, a Santa Clara Valley Transportation Authority employee, allegedly shot and killed nine men at the VTA light rail yard Wednesday morning.

The Santa Clara County Sheriff's Office said co-workers described Cassidy as "disgruntled."

PHOTO: Family members mourn at a vigil for victims of a shooting at a rail yard run by the Santa Clara Valley Transportation Authority in San Jose, Calif., May 27, 2021.
Brittany Hosea-Small/Reuters
Family members mourn at a vigil for victims of a shooting at a rail yard run by the Santa Clara Valley Transportation Authority in San Jose, Calif., May 27, 2021.

"Detectives are investigating his relationship with VTA," the sheriff's office said Friday.

Authorities said they believe he acted alone.

PHOTO: Alyssa Rubino and Christina Gonzalez hold a picture of their cousin Michael Joseph Rudometkin during a vigil for victims of a shooting at a rail yard run by the Santa Clara Valley Transportation Authority in San Jose, Calif., May 27, 2021.
Brittany Hosea-Small/Reuters
Alyssa Rubino and Christina Gonzalez hold a picture of their cousin Michael Joseph Rudometkin during a vigil for victims of a shooting at a rail yard run by the Santa Clara Valley Transportation Authority in San Jose, Calif., May 27, 2021.

A fire was reported at Cassidy's house minutes after the shooting, and the sheriff's office said investigators believe Cassidy "coordinated the destruction of his residence."

The search of Cassidy's home is ongoing. San Jose Fire Department spokesperson Erica Ray said on Friday that it's complicated by "heavy" damage that rendered the residence "uninhabitable." The fire seemed to burn quickly, she added.

San Jose police spokesman Steve Aponte said a "hoarder situation" further hampered the search.

PHOTO: Emergency responders respond to a fire at the house of the suspect of a shooting, May 26, 2021, after multiple people were killed at a rail yard in California's Bay Area.
Amy Osborne/AFP via Getty Images
Emergency responders respond to a fire at the house of the suspect of a shooting, May 26, 2021, after multiple people were killed at a rail yard in California's Bay Area.

Cassidy died at the transit hub on Wednesday, apparently from a self-inflicted gunshot wound.

Thirty-nine shots were fired at the scene, authorities said.

PHOTO: Investigators gather evidence at building B, after a mass shooting at the Valley Transportation Authority (VTA) light-rail yard, May 26, 2021 in San Jose, Calif.
Philip Pacheco/Getty Images
Investigators gather evidence at building B, after a mass shooting at the Valley Transportation Authority (VTA) light-rail yard, May 26, 2021 in San Jose, Calif.

Three semi-automatic handguns and 32 high-capacity magazines were found at the light rail yard, officials said. The guns are believed to be legally purchased and didn't appear to be modified, Santa Clara County Sheriff Laurie Smith said Thursday.

There were magazines that could hold up to 12 bullets, which are illegal in California, authorities said. There was no indication those were modified for rapid shooting, Smith said.

FBI Special Agent In Charge Craig Fair told ABC News on Thursday that investigators have obtained surveillance footage that captures the shooter walking into the building before the incident. FBI agents are working five crime scenes within the site and will be mapping them out digitally to recreate the shooting, he said.

PHOTO: ATF and FBI agents approach the scene of the Santa Clara Valley Transportation Authority mass shooting suspect's house, after a fire at the home of the suspect erupted at about the same time as the shooting, in San Jose, Calif., May 26, 2021.
Peter Dasilva/Reuters
ATF and FBI agents approach the scene of the Santa Clara Valley Transportation Authority mass shooting suspect's house, after a fire at the home of the suspect erupted at about the same time as the shooting, in San Jose, Calif., May 26, 2021.

Kirk Bertolet, a VTA employee, was in a secure room at the transit hub when shots rang out. He said he felt helpless listening to the gunshots. When the shooter moved to another building, Bertolet said he ran to help his friends and coworkers but they were already dead.

Bertolet said he believes the shooter targeted his victims and spared others. He said the gunman looked at one of his coworkers, who was curled up on the floor, but didn't shoot her.

"She was right among everybody else," he said.

Beyond an arrest in the 1980s over a "minor" incident, the suspect had no other known criminal history, authorities said.

PHOTO: This undated photo provided by the Santa Clara County Sheriff's Office shows Samuel Cassidy, 57, the suspect in May 26, 2021, shooting at a San Jose rail station.
Santa Clara County Sheriff's Office via AP
This undated photo provided by the Santa Clara County Sheriff's Office shows Samuel Cassidy, 57, the suspect in May 26, 2021, shooting at a San Jose rail station.

Cassidy was questioned by Customs and Border Protection in 2016, three sources familiar with the probe told ABC News.

He was stopped by U.S. Customs and Border Protection agents while returning to the U.S. from the Philippines in August 2016. He allegedly was carrying books about terrorism and manifestos, which was the reason for the stop, sources said.

Cassidy was also allegedly carrying a notebook in which he wrote about his apparent hatred of his workplace, according to sources familiar with the matter. This development was first reported by The Wall Street Journal.

A Department of Homeland Security spokesperson declined to comment on the specifics of the case, citing the ongoing investigation, but said in a statement: "Under the leadership of Secretary [Alejandro] Mayorkas, in February, DHS commenced a department-wide review which included efforts to ensure law enforcement personnel have the tools and training to identify behavioral indicators associated with targeted violence and policy to improve information sharing with our partners."

ABC News' Kaylee Hartung, Alex Stone, Luke Barr and Jack Date contributed to this report.