Nearly 30,000 "foreign terrorist fighters" are currently in Syria and Iraq, a high-ranking UN official said Tuesday, warning that the risk of attacks in their home countries was growing.