Man arrested for attacking a dog