Photon-echo technique for reducing the decoherence of a quantum bit