Hundreds of heavily armed officers swarmed the sprawling UCLA campus Wednesday following a shooting that forced thousands to barricade themselves in classrooms and offices, some using belts and chairs to secure doors, until authorities determined the gunman and the professor he shot were dead.