Man helps dogs get ball out of pool