The Pentagon plans to open its first office in Silicon Valley and provide venture capital in an effort to tap commercial technology that can be used to develop more advanced weapons and intelligence systems.

Pentagon...