More than a dozen students have been taken to hospital after they became ill from eating extremely spicy crisps, reportedly given out by a fellow pupil "for fun", officials in Japan have said.