Pakistan's democracy may be in danger following the removal of former Prime Minister Nawaz Sharif — a move set to widen uncertainty and boost the military.