You could give the object an instance variable named "hasBeenHit" and set it initially to say 0. Then on collision set that instance variable to 1, and have the animation change according to the value of the instance variable.
Just one way of probably many. Hope I helped!
EDIT: Just saw that you want to change animation frame... same as I previously wrote, but have the frame change according to the instance variables value.