CRIME

2 NYPD officers fatally shot by gunman who vowed to kill cops; shooter takes his own life

  • ADDS BOTH OFFICERS KILLED - Mourners stand at attention as the bodies of two fallen NYPD police officers are transported from Woodhull Medical Center, Saturday, Dec. 20, 2014, in New York. An armed man walked up to two New York Police Department officers sitting inside a patrol car and opened fire Saturday afternoon, killing both officers before running into a nearby subway station and committing suicide, police said. (AP Photo/John Minchillo)

    ADDS BOTH OFFICERS KILLED - Mourners stand at attention as the bodies of two fallen NYPD police officers are transported from Woodhull Medical Center, Saturday, Dec. 20, 2014, in New York. An armed man walked up to two New York Police Department officers sitting inside a patrol car and opened fire Saturday afternoon, killing both officers before running into a nearby subway station and committing suicide, police said. (AP Photo/John Minchillo)  (The Associated Press)

  • ADDS BOTH OFFICERS KILLED - Mourners stand at attention as the bodies of two fallen NYPD police officers are transported from Woodhull Medical Center, Saturday, Dec. 20, 2014, in New York. An armed man walked up to two New York Police Department officers sitting inside a patrol car and opened fire Saturday afternoon, killing both officers before running into a nearby subway station and committing suicide, police said. (AP Photo/John Minchillo)

    ADDS BOTH OFFICERS KILLED - Mourners stand at attention as the bodies of two fallen NYPD police officers are transported from Woodhull Medical Center, Saturday, Dec. 20, 2014, in New York. An armed man walked up to two New York Police Department officers sitting inside a patrol car and opened fire Saturday afternoon, killing both officers before running into a nearby subway station and committing suicide, police said. (AP Photo/John Minchillo)  (The Associated Press)

  • ADDS BOTH OFFICERS KILLED - NYPD Commissioner Bill Bratton, right, stands beside Mayor Bill de Blasio as he wipes his eye during a news conference at Woodhull Medical Center, Saturday, Dec. 20, 2014, in New York.  An armed man walked up to two New York Police Department officers sitting inside a patrol car and opened fire Saturday afternoon, killing both officers before running into a nearby subway station and committing suicide, police said. (AP Photo/John Minchillo)

    ADDS BOTH OFFICERS KILLED - NYPD Commissioner Bill Bratton, right, stands beside Mayor Bill de Blasio as he wipes his eye during a news conference at Woodhull Medical Center, Saturday, Dec. 20, 2014, in New York. An armed man walked up to two New York Police Department officers sitting inside a patrol car and opened fire Saturday afternoon, killing both officers before running into a nearby subway station and committing suicide, police said. (AP Photo/John Minchillo)  (The Associated Press)

New York City's police commissioner says the gunman who ambushed and killed two officers had made online posts that were "very anti-police."

Commissioner Bill Bratton choked up at a news conference Saturday as he talked about the fatal shootings of Officers Rafael Ramos and Wenjian Liu in Brooklyn.

Bratton says gunman Ismaaiyl (IHSH'-mayl) Brinsley shot and wounded his former girlfriend in Baltimore earlier Saturday and made posts on her Instagram account.

Bratton didn't specify the contents of the posts, but two officials told The Associated Press that Brinsley posted about shooting two "pigs" in retaliation for the police chokehold death of Eric Garner. The officials spoke on condition of anonymity because they were not authorized to speak publicly.

Authorities say Brinsley fatally shot himself after killing the officers.