School principal loses her job over student cage inquiry