Hamas official says group to disarm after two-state solution