That was definitely a witch hunt. He worked hard to give advice that he thought would be useful for improving diversity at Google. Nothing he said was outside of the scientific consensus, yet he was demonized[1] and fired for it. The whole thing is absurd.
1. Check out some Googler's responses to his document (which, in case you forgot, was deliberately leaked without diagrams or citations): https://imgur.com/a/S48QN Several want him physically battered for his opinions.