One of the first police officers on the scene of the 2017 London Bridge terror attack has been sacked for sending offensive messages in a WhatsApp group.