Embed from Getty Images

A gunman who killed nine people at a San Jose, CA, rail yard Wednesday appeared to target some of the victims as he fired 39 shots, a sheriff told The Associated Press.

The shooter arrived at the light rail facility for the Valley Transportation Authority in San Jose around 6 a.m. with a duffel bag filled with two semi-automatic handguns and 11 magazines, Santa Clara County Sheriff Laurie Smith said in an interview.

“It appears to us at this point that he said to one of the people there: ‘I’m not going to shoot you,’” Smith said. “And then he shot other people. So I imagine there was some kind of thought on who he wanted to shoot.”

While there are no cameras inside the rail yard's two buildings, Smith said footage captured him moving from one location to the next. It took deputies six minutes from the first 911 calls to find the gunman on the third floor of one of the buildings, Smith said.

He killed himself as deputies closed in.