Rise in virus cases near bases in US and abroad poses test for military