A relativistically covariant stochastic model for systems with a fluctuating number of particles