Candidates hoping to be chosen as the next secretary general of the United Nations have publicly debated on live television for the first time.