A London charity has been given an official warning in what is thought to be a first-of-its-kind case after fundraising for a soldier in the Israel Defence Forces (IDF).