Tunisia's prime minister announces resignation after rejection of his technocrat government.