Israel carried out fresh strikes on Gaza on Saturday in what it said was retaliation for rockets fired at its territory from the coastal enclave. The strikes on Hamas positions came just two days after a ceasefire between Israel and the smaller Gaza-based militant group Islamic Jihad began. A flare-up between Israel and the territory's second most powerful Palestinian militant group sparked a series of deadly exchanges earlier this week. The Israel Defence Forces (IDF) said it was "currently striking Hamas terror targets" in Gaza. The army said it launched the strikes after "two rockets were fired from the Gaza Strip towards Israeli territory" and were intercepted by air defences. Palestinian security sources said the Israeli strikes were aimed at two Hamas sites in the north of the territory. It was the first time Hamas has been targeted since this week's escalation began early Tuesday with Israel's targeted killing of a top Islamic Jihad commander. That strike triggered almost immediate retaliatory rocket fire from Islamic Jihad at Israel, setting off air-raid sirens and sending Israelis rushing to bomb shelters in the country's southern and central regions. Israel's military had said around 450 rockets were fired at its territory during the fighting and air defences had intercepted dozens of them. It then responded with its own air strikes, saying it had targeted more Islamic Jihad militant sites and rocket- and missile-launching squads. After two days of violence - in which 34 Palestinians died but no Israeli fatalities - a ceasefire was agreed. But it has so far been precarious, with fire coming from both sides on Friday after the agreement went into effect. The Gaza Strip is home to two million Palestinians, and Israel and Palestinian militants have fought three wars there since 2008. Israeli analysts said earlier this week that the focus on Islamic Jihad instead of Hamas was a clear signal that the army sought to avoid a wider conflict in Gaza. Hamas repeatedly said it would not abandon its ally, but not joining the fight helped it maintain a fragile truce with Israel that has seen tens of millions of dollars in Qatari aid flow into the impoverished Gaza Strip since last year. On Thursday, Israeli military spokesman Jonathan Conricus told reporters that the army had "wanted to keep Hamas out of the fighting". "Throughout the operation, we of course between distinguished Hamas and Islamic Jihad. And all of our operations were measured, proportionate and focused only on military assets belonging to Islamic Jihad," he said. Hamas was criticised in Gaza for not joining the fighting. Likewise, Israeli Prime Minister Netanyahu came under fire from political rivals at home for not holding Hamas accountable for attacks from the territory it rules. The violence came at a politically sensitive time for Israel, with no new government in place since a September election ended in deadlock.