UN Secretary-General Antonio Guterres and the Qatari minister for foreign affairs have discussed the latest developments in Afghanistan and Gaza.