At least one New York city police officer has been killed and another injured after a gunman opened fire at them near Harlem neighbourhood.