A Fayetteville woman who was being sexually assaulted late Wednesday wrestled a gun from her attacker and shot him in the leg, police said.