First-passage and first-exit times of a Bessel-like stochastic process.