Particle-in-cell simulation study of a lower-hybrid shock