The US military temporarily grounded its entire fleet of F-35 fighter jets.