Judge orders detention of Tunisian media magnate Karoui