The owner brought the dog to the beach to walk