Officials told Reuters news agency truce came into affect after at least 24 Palestinians and four Israelis killed.