The Israeli military struck eight Hamas targets in three different military compounds in the Gaza Strip late Wednesday night after a rocket fired from Gaza landed in an unpopulated area.

The targets included a military compound in the northern Gaza Strip, a training base and a weapon production and storage site in the southern Gaza Strip.

To really understand Israel and the Palestinians - subscribe to Haaretz

Rocket sirens sounded in the southern Israeli regional councils of Merhavim and Eshkol near the Gaza border late on Wednesday evening. Residents in the communities reported hearing expolsions.

Media outlets in the Gaza Strip reported that Hamas evacuated its positions out of fear of an Israeli response.

In an official statement, the IDF blamed Hamas responsible for "everything happening in and out of the Gaza Strip." Going on to say that Hamas will "bear the consequences for the terrorist acts carried out against the citizens of Israel."

The Israeli military said earlier on Wednesday that it struck a Hamas outpost in southern Gaza after incendiary balloons were launched from the Strip toward Israel.