The 1st doesn't protect from firing when you trash your employer in public. It protects your trashing, not employment :)
However, the police unions would never allow such a thing.
Second, I suspect that a majority of the officers in question were not on the job while attending that funeral.
And the fact that my employer can't have me beaten up has nothing to do with the 1st amendment. That would be assault no matter what their motivation.