A Yakima gang member accused of trying to pull a gun on a state trooper was sentenced Monday to 10 years in prison.

Joselito M. Paz, a 23-year-old LaRaza Norteño who goes by the street name “Flaco,” earned his second strike for his guilty plea to a charge of second-degree assault.

The conviction stemmed from a traffic stop just before midnight Oct. 26 at South First Street and Ranch Rite Road, near Nob Hill Boulevard.

A Washington State Patrol trooper said Paz fled on foot and tried to pull a gun on him after scaling a 10-foot chainlink fence topped with barbed wire. In the process, he dropped the pistol, screaming an expletive in frustration, the trooper said.

The gun, a cheap .22-caliber Intratec semiautomatic, was fully loaded with a round in the chamber, police said. The magazine popped loose when Paz dropped it.

Paz was taken into custody the next night after agents with the Yakima County Violent Crimes Task Force tracked him to a party at 607 N. Seventh St.

Paz has a lengthy criminal record and was on parole after serving nearly five years for shooting a gang rival in the face in September 2007.

A spokesman for the state Department of Corrections said Paz was classified as a high-risk parolee and that he spent most of his time in prison in maximum-security custody.