A man was teasing a dog with his own machine.