You need to find the lever for the switch in a nearby chest.