After base shooting, Pentagon restricts foreign trainee access to guns