On a stochastic SIR model