The incident came moments after the former president had criticized major media outlets for what he said was unfavorable coverage.