The man was extremely scared when the dog hugged his leg