Israel's military says two rockets fired from Gaza have exploded in the country's south causing no injuries.

It said sirens wailed late Wednesday night warning of the incoming rockets.

The Islamic militant group Hamas that rules Gaza said militants were evacuating their posts in anticipation of Israeli retaliation.

Rocket fire has mostly subsided since last summer's war between Hamas and Israel but there has been some occasionally.

No militant group has taken responsibility, but a Gaza group that supports the Islamic State is believed to be behind the attack. It claimed responsibility for a similar attack last week. Hamas, which has ruled Gaza with an iron fist since 2007, sees the radical group as a threat.