NBC: Pakistan elects new prime minister, ending political crisis