Student dies of heart attack