Pentagon considers banning military from extremist groups