What We Can Learn About Regulating AI from the Military