Israel suspended talks with Palestinian factions in Cairo after a salvo of rockets from Gaza struck its territory, breaking a truce aimed at allowing negotiators to broker a long-term deal.

As soon as the rocket fire resumed, Prime Minister Benjamin Netanyahu recalled the Israeli delegation from the talks in Cairo. In the hours that followed, Israel retaliated with 25 airstrikes against militant targets in Gaza, according to the military.

"Israeli cities are under rocket attack," the military spokesman's department said in a tweet. "Millions of Israelis are running to bomb shelters. Hamas made its decision. Now we will make ours."

Palestinian health officials said two people were killed.

(Gaza update: Three senior military leaders killed in Israeli airstrike).