Tunisia imposes curfew after militant attacks