Stopping a fleeing attacker in a lot of places is also completely legal. I would suggest it must be so in Texas as well.
Stopping them is legal. Stopping them by using deadly force generally isn't. Texas has very liberal gun control laws, but I highly doubt thats legal to stop a fleeing attacker by using deadly force.