A worldwide shortage of nitrogen fertilizer used to boost crop yields may affect next year’s food prices.