Police have charged two men over an incident at ‌a UK military base, with prosecutors accusing a British national of trying ‌to help Iranian intelligence.