SAN FERNANDO (CNS) — A 40-year-old transient was sentenced Monday, Dec. 7, to seven years in prison for trying to kidnap and rape a 13-year-old girl he accosted at a bus stop in Santa Clarita.

Guillermo Lomeli Ceniceros pleaded no contest to one count of attempted kidnapping to commit rape and was immediately sentenced by Superior Court Judge David Stuart, who also ordered the defendant to register for life as a sex offender.

Ceniceros, from the Rosamond area of Kern County, grabbed the teen on Nov. 12, 2014, as she sat on a bus bench near Jakes Way and Sierra Highway.

A good Samaritan driving by yelled at the man and urged the teen to run away. The witness also called the Los Angeles County Sheriff’s Department, kept an eye on the suspect and directed deputies to him, authorities said.

Ceniceros had been living in a wash near Soledad Canyon and the Antelope Valley (14) Freeway in Santa Clarita for a few months prior to the crime, according to the District Attorney’s Office.