On a stochastic integral equation of the fredholm type