Tunisian swears in interim president amid chaos