He was arrested and sentenced to prison at the same time as nationwide protests in response to the murder of Mahsa Amini