An armed security guard hired to protect a San Francisco television news crew on assignment was shot Wednesday during an attempted armed robbery, the news outlet said.