A man who bear-sprayed an Anchorage police officer last year was sentenced Friday to seven years in prison.

Joshua Chiskok, 26, pleaded guilty to one count of second-degree assault on a law enforcement officer in the June 21, 2016 encounter according to Assistant District Attorney Ronald Dupuis. His sentence was approved by Superior Court Judge Michael Wolverton.

“Chiskok was in-custody and will begin serving his sentence with credit for time he had already spent in jail on this case,” Dupuis wrote in an email.

Police said in a statement at the time of the assault that the officer had been responding to a reported disturbance, near 15th Avenue and Cordova Street, when he saw Chiskok acting “fidgety.”

Soon afterward, Chiskok pulled out a can of bear spray and discharged it into the officer’s face; other officers used a baton and a Taser to take Chiskok into custody.

Chiskok also acknowledged in Friday’s plea deal that he was under probation or parole for another felony at the time of the assault, and that he had a criminal history involving “aggravated or repeated instances of assaultive behavior.”