In my CCW class you are taught that you could fatally shoot someone in this circumstance. Seems like it’s not much of a leap to say you could also beat someone to death. Hope the little girl is OK.
Texas Penal Code states use of deadly force is justifiable in the prevention of a rape.