A Berlin primary school had to be evacuated after children began suffering side effects of an "irritant gas".