Man arrested after machete attack