A large fire spread on the slopes of the city’s famed Table Mountain, setting several university buildings ablaze, including a nearly 200-year-old library.