Neither the presence of sleeping cells of ISIS in Tunisia, nor the ability of ISIS to use its spread campaigns in Libya is new, but the usage of these two possibilities is not related to the Tunisian position against ISIS.
It is certain that ISIS has lost from its units and its force dozens of fighters in order to achieve nothing, but it does not seem that the failure was possible to be avoided, or it was a miracle which was achieved by the Tunisian security, with appreciation of the size of its sacrifices and its confrontation, but the available data says that the action was a military suicide.
The military suicide is done by any party in order to send a message only; this message may be an inescapable one or has a high value.
What can be said here is that the message was not dedicated to ISIS here.
The message is for Tunisia, to show that it has surpassed the red lines and has deserved the punishment; the decision was Turkish in favor of Israel after the defensive position of Tunisia to the resistance, this was in order to prevent the progress of events.