Health minister Andrew Gwynne has been sacked over comments posted on a WhatsApp group.