Madhesh Province Chief Minister Krishna Prasad Yadav has resigned ahead of a confidence vote in Nepal after two coalition partners withdrew their support.