Police have arrested a suspect after several pupils were injured at a school in the western German city of Wuppertal.