Israel's military says its aircraft hit a site used by the militant Islamic group Hamas in Gaza in retaliation to a rocket fired from the territory at Israel earlier in the day.

No one was killed in Friday's exchange.

Military spokesman Lt. Col. Peter Lerner says that "multiple rockets" have been fired at Israel from Gaza this month alone and warned that "Hamas must fulfill its responsibilities or face the consequences."

Israel holds Gaza's Hamas rulers responsible for all attacks stemming from the territory.

Hamas said one of its facilities was hit and two of its members lightly hurt.

The attack was claimed by Gaza militants who support the Islamic State group in Iraq and Syria. They criticize Hamas for not imposing strict religious law in Gaza.