LI teacher who appeared on reality TV show loses job