Defense lawyers told the judge there was not enough evidence presented to justify the arrest of Juan Francisco Lopez-Sanchez and they moved to dismiss the 2nd degree murder case.
RELATED: Parents of woman killed at San Francisco's Pier 14 file legal claims
"There was reasonable suspicion to stop Lopez-Sanchez, to question him, to search him, to do certain things short of arresting him," said San Francisco's chief public defender Matt Gonzales.
Gonzales says Lopez-Sanchez was detained in a police cruiser for four hours and then taken to the Hall of Justice where he was interrogated, which Gonzales says is tantamount to an arrest.
After listening to arguments, Judge Jim Collins denied the motion to dismiss, saying he agreed with prosecutors that there was enough probable cause to arrest Lopez-Sanchez; that police relied on witness accounts and their cellphone images, where citizens pointed out the suspect to officers.
RELATED: San Francisco pier shooting suspect seeks case dismissal
Police, armed with a cellphone photo of Lopez-Sanchez, arrested him a block away from Pier 14 where the shooting happened. Now that the question of the arrest has been resolved by the court, Lopez-Sanchez's lawyers will focus on their defense that the shooting was an accident.
Kate Steinle was strolling down Pier 14 at the Embarcadero when she was shot in the back. Lopez-Sanchez told ABC7 News in a jailhouse interview that he found the gun under the bench and threw it off the pier after it went off accidentally.
During the preliminary hearing, former crime lab Chief Jim Norris said that Steinle was struck by the bullet after it hit the ground and ricocheted.
"We're not aware of any other case in the history of San Francisco involving a ricochet being the basis of a murder charge," Gonzales said.
More hearings are scheduled before the trial begins.
Lawyer of accused killer of Kate Steinle asking murder charge be dismissed because they claim it was an accident. pic.twitter.com/WIYyhzqENi— Vic Lee (@vicleeabc7) April 12, 2016
Click here for full coverage on the Pier 14 shooting.