Researchers conducted a survey in 14 countries with a history of large U.S. military deployments, asking residents whether the military presence was helpful and made them safer from foreign threats.