Quantum Zeno effect by indirect measurement: The effect of the detector