Secretive branches of the military’s Special Operations forces have increased counterterrorism missions against some of the most lethal groups.