Good Samaritan led to end of attack by dogs