Study of the limits of single-photon detection in lumped element kinetic inductance detectors