“No punishment. No investigation,” the Pentagon chief wrote on social media hours after military officials announced they had grounded the pilots involved.