Tunisian authorities have promised to crackdown on organisations they accuse of promoting extremism in the wake of the attack on a beach resort in Sousse.