Particle flux across a stochastic magnetic layer