Officials for the militant organization Hamas have confirmed the move, which was agreed to earlier this year in a peace deal with Israel.