Dozens of protesters have been detained at UCLA after officials issued an evacuation order for a pro-Palestinian encampment on campus.