Not the same as murdering a bunch of folks who print/say offensive stuff, imo.
I agree that you would deserve a punch in the nose, and if I were on a jury, I would go easy on him for punching you.
If he shot you, I would not agree that you deserved it, and I would not go easy on him at trial.
“They got what they deserved” is a slippery slope, imo.
I'm not suggesting that these folks "got what they deserved," but there's no question that they (at least the leadership of Charlie Hebdo) were instrumental in their own demise. If the leadership of my company conducted business the way the leaders of Charlie Hebdo did, I'd be working somewhere else.
I guess it would be too much for secular leftists to understand what the virtue of prudence means.