The Israeli military has launched attacks across Gaza hours after the ceasefire announcement between Israel and Hamas.