A school has been accused of making Jewish families feel unwelcome by asking pupils to fast in aid of Gaza.