The war has led to shortages of fuel, fertilizer and pesticides across Ukraine and could undermine food security around the world.