Official: Palestinian groups agree to halt attacks on Israel