The Israeli army said it struck targets belonging to Hamas in retaliation for a rocket that was fired from the Gaza Strip on Sunday night.