All that stuff may sound compelling, but it isn't germane to this case. The plain fact of the matter is that a person has every right to photograph whatever is happening in public. Period. It doesn't matter who that person is, why that person is there, etc. If the thing is going down in public, it has no reasonable expectation of privacy, and a person with a camera can snap away until the cows come home.
Cops while in public must never be recorded, photographed or question with any suspicion. Got it.
If the cops were undercover, how did this guy even know he was taking photos of cops? He sees people busting into a house in his neighborhood and takes pictures of it. Seems reasonable to me.