ammonia causes temporary burning sensation of nose and eyes. you do not need to worry about long term side effects of it. you should take precaution while doing experiments in labs. next time tell your teachers about the incident and ask her to make it a rule to wear protective goggles while doing experiments. and in case you have another such incident inform your teacher and wash your eyes repeatedly with cold
water and go to doctor.