Lattice study of a Yukawa theory with a real scalar field