Palestinian security officials say explosions have rocked several sites in the Gaza Strip, wounding at least five people.

The targets hit by Israel included the Ansar compound in Gaza City, home to Hamas headquarters and government offices, Palestinian sources said.

Under Fire More rockets: 2 Qassams land in south Ilana Curiel Gaza terrorists continue to target southern Israel; no injuries or damages reported in latest attack More rockets: 2 Qassams land in south

The army confirmed operations in Gaza late Thursday, saying that IDF aircraft operating in cooperation with the Shin Bet security service struck terror targets in the northern Gaza Strip as well as a smuggling tunnel in southern Gaza. The targets were hit accurately, the army said.

The IDF said the attacks were a response to rocket and mortar attacks on southern Israel in the last two days.

"The IDF will not tolerate any attempt to hurt Israeli citizens and IDF soldiers, and shall continue to operate decisively and powerfully against any element that utilizes terror against Israel," the army said. "The IDF views terrorist group Hamas exclusively responsible for what goes on in the Gaza Strip."

Palestinian security officials said five people were hurt in an attack on a training base for security forces.

There was no immediate word on casualties from other attack sites.

Since Wednesday morning, three rockets and mortars shells were fired from the Gaza Strip landed in Israel.

Ali Waked contributed to the report