A professor at Idaho State University shot himself in the foot on Tuesday while on the university’s campus, according to television station KIDK.

Police told the TV station the professor had a permit to carry a concealed weapon. Under a law signed in March by Idaho Gov. Butch Otter (R), the presence of concealed weapons on college campuses is allowed.

According to KIDK, who spoke with a student, the gun went off during the middle of the professor’s class. Police said the handgun was in the professor’s pants pocket when it misfired. He was treated for his injury and released from the hospital.

The university said no one was evacuated from the building after the incident, and the station reported that no criminal charges had been filed. The name of the professor was not released.