US military prepared for ‘worst’ with China: official