Headmaster caught mining cryptocurrency at school; gets fired