Tunisia detains critic of president in crackdown