The photographer (Sergeant Sean Murphy) deserves to be fired for that (and he might be; he's currently on suspension).
These efforts to punish Rolling Stone for glamorizing the terrorist are playing Rolling Stone's game, promoting the magazine and boosting its image of edginess.