Updated

The Israeli military says its aircraft struck militant targets in the Gaza Strip hours after Palestinians there fired rockets at Israel.

The military said it targeted "terror sites" early Friday in retaliation for rocket attacks and sniper fire from Gaza aimed at Israel that caused no injuries.

Gaza security officials said seven targets were hit in three locations, including training sites used by the ruling Hamas militant group. They said four Hamas members and two others were injured. The officials spoke on condition of anonymity because they were not authorized to talk to the press.

Rocket fire from Gaza has declined since an Israeli campaign aimed at ending the then almost daily attacks in 2012, but it still persists.

Last month, Gaza militants launched the heaviest barrage since that offensive.