New York policeman in critical condition after shooting