YAKIMA, Wash. — Yakima police have arrested the 15-year-old suspect in the fatal shooting of a man Thursday on West Mead Avenue.

The suspect was taken into custody Friday in the 800 block of Wilson Lane, south of Nob Hill Boulevard, about 5:30 p.m.

Meanwhile, it was revealed Friday that the victim in the Thursday altercation did time in prison after being accused of trying to rape a 16-year-old girl at gunpoint.

Anthony Allen Yocom, a 22-year-old parolee who also went by Yokom, died during surgery after being shot in the chest on West Mead Avenue. Police said they had identified the gunman, who remained at large until Friday night.

According to investigators, witnesses said the shooting occurred after Yocom appeared to accost the teenager, who was walking down the street with his girlfriend. Police say the teenager pulled a pistol and shot Yocom at least once in the chest.

After being shot, Yocom collapsed at a nearby home where he had been staying. Police say the teenager ran back to his home across the street, then fled the area.

According to Yakima County court records, Yocom in 2009 narrowly avoided a sexual assault conviction after he was accused of trying to rape a teen girl.

The girl told police she met Yocom, then 18, at a local market and got in his car to try to buy beer at another store when he pulled a gun on her and tried to rape her.

The incident occurred in Yakima’s Barge-Chestnut neighborhood, where a witness saw the girl struggling with a man in the bushes and then saw the man run off with a gun in his hand.

Yocom was charged with first-degree attempted rape but eventually pleaded guilty to a charge of second-degree assault.

The deal allowed Yocom to avoid a conviction for a sex offense. However, he agreed to a prison sentence of nearly three years that was much harsher than normal for a first-time offender.

A Yakima Police Department spokesman said detectives are unsure why Yocom appeared to have accosted the teenager on Thursday and that an overall motive for the altercation has yet to fully emerge.

The shooting was Yakima’s fourth homicide of the year and the first since May 15, when the body of a 28-year-old woman was found inside an abandoned house on North Fourth Avenue.

A total of 12 homicides have been reported in Yakima County this year, most of them in the Lower Valley but also in Union Gap and Terrace Heights.