Israel and Hamas have agreed to restore calm in the Gaza Strip, a spokesman for Hamas, the Islamist group that controls the Gaza Strip, said on Saturday.