The gunman who ambushed and murdered two NYPD officers as they sat in their squad car Saturday afternoon in Brooklyn vowed to kill police in a number of social media posts that vowed retaliation for the deaths of Michael Brown and Eric Garner, authorities said.