Class 12 student was found hanging