Tunisia’s president dismissed the government and froze parliament on Sunday, prompting crowds to fill the capital in support of a move that dramatically escalated a political crisis, but that his opponents called a coup.