New York: A gunman fatally shot a female New York City police officer in an unprovoked attack early on Wednesday in the city's Bronx borough, then was himself shot dead by police as he ran from the scene, authorities said.
The officer, Miosotis Familia, 48, a 12-year veteran of the force, was shot as she sat in a mobile command truck with her partner at about 12:30 a.m. EDT (0430 GMT), the New York Police Department said.
The suspect fired through the vehicle's window, hitting Familia in the head, police said in a statement.
"It is clear that this was an unprovoked direct attack on police officers who were assigned to keep the people of this city safe," Police Commissioner James O'Neill said.
The suspect, Alexander Bonds, 34, of the Bronx borough, was on parole for robbery in Syracuse, New York, according to a police source.
Police officers lined the street outside Saint Barnabas Hospital where Familia was pronounced dead, and saluted as an ambulance drove her body to New York's Office of Chief Medical Examiner, police said.
Officers chased the assailant on foot for a block before he drew a revolver and they shot and killed him, police said.
A bystander was also shot and was in stable condition at a hospital, according to the department.
A total of 24 U.S. law enforcement officers have been killed by gunfire so far this year, a 20 per cent increase from the same period in 2016. Familia is the eighth New York City police officer shot and killed in the line of duty over the last five years.
Her shooting was a chilling reminder of the December 2014 ambush of two New York City police officers who were slain as they sat in a patrol car in Brooklyn by a man who traveled to the city from Baltimore after pledging to kill officers.
The deaths of the two officers stoked tensions between City Hall, the police department and reform-minded protesters who had voted Mayor Bill de Blasio into office, turning out in large numbers.
In 2014, 126 law enforcement officers died in the line of duty in the United States.