A dog pulled away from his owner and jumped into the water to grab a stray ball