Even if it had not been his own child, a good beating causing death to that pervert was correct.
And I see no difference whether the pervert was shot dead, stabbed to death, or was beaten to death. The man saved the child. He did what he had to do. One doesnt stand around in an emergency thinking what to do.