Beijing has summoned a US ambassador and accused Washington of double standards over its unprecedented indictment of five Chinese military officers for cyber-espionage.