Detection of a quantum particle on a lattice under repeated projective measurements