It is never illegal to film cops in the US unless you are breaking another law in order to do it (ex: filming their tiny peepee by zooming into their bedroom window). If they are in public or in any private place where you are not trespassing, you can film.
What insane place do you live in that holding a camera constitutes as terrorism?
More confused now than I was before.