It was the president's second Twitter attack this week against a network that once treated him favorably.