The best course of action is to take the cat to the vet for examination. In the meantime, flush the eye thoroughly with saline solution or cool water and put a cone around its neck to prevent them from scratching or rubbing at it.