The dog was plunging into the water to retrieve a log thrown by its owner