Hamas official says has reached an agreement with Israel and will soon issue formal statement: media