Israel said rockets had been fired towards civilian areas.