Armed men stole $40 million of gold and other precious metals on Thursday from a Sao Paulo cargo terminal at South America’s busiest airport, taking two hostages, police said.