It is likely that some shampoo, air from the dryer, or even small bits of hair from trimming got in your dog's eye and caused irritation. You can try to rinse your dog's eye gently with saline solution (like you use for contacts).