Man arrested in machete attack on dog