Iran has shown EU cities could be hit in the Middle East war, as tens of thousands of European nationals try to flee the region.