Charity warned over foreign military fundraising