Top official warns of domestic security threat from regional setbacks