The assailant, who used a hunting rifle, was a student, according to local media.