Flake, McCain rip Trump over his media attacks