A Long Beach man was sentenced Tuesday to 16 years to life in state prison for stabbing and killing a man with a screwdriver, according to the Los Angeles County District Attorney’s Office (LADA).

Arturo Ruiz Torres, 33, was harassed by an unknown man on November 23, 2013, according to a court testimony on December 22, 2014. He then mistook 50-year-old Anthony Ramirez, who was riding by on his bike, for the man who was harassing him and subsequently stabbed Ramirez three times with a screwdriver, the LADA said.

Torres then fled the scene and left the screwdriver lodged in Ramirez’s body, said prosecutor Lindsay Kurtis. Ramirez died at the scene.

“Torres was with a group of friends when the attack occurred,” said LADA spokesman Richard Santiago. “A witness led police to one of the friends in his group, and that friend identified him as the attacker and later testified at the trial.”

Six days after the incident, Torres was apprehended by police and charged in connection with the crime.