A student demonstration in Afghanistan's south turned violent, with demonstrators throwing stones and, at one point, tossing an explosive device into the United Nations compound and setting fire to a guard post outside the building, the UN mission there reported today.