NEW YORK -- A New York Police Department officer has died from her wounds after being shot in the head early Wednesday in what authorities described as an "unprovoked attack" as she was sitting in a patrol car at a command post, according to multiple reports.

The officer was identified by 7abcny.com as 48-year-old Miosotis Familia. She was in the area of East 183rd Street and Morris Avenue in the Bronx around 12:30 a.m. as part of a police response to an earlier shooting when she was shot, the report said.

A gunman, identified as 34-year-old Alexander Bonds, shot Familia through the window of the patrol car, the report said.

Bonds was then shot and killed by other officers, according to the New York Daily News. A bystander was also wounded in the shooting, the report said.

#NYPD PO Miosotis Familia has been assassinated in an unprovoked attack on cops assigned to keep NYers safe. Keep her family in your prayers pic.twitter.com/yhRB7H5bvi — Commissioner O'Neill (@NYPDONeill) July 5, 2017

Familia was rushed to a hospital, where she was pronounced dead.

"Based on what we know right now, it is clear this was an unprovoked attack on police officers who are assigned to keep the people of this great city safe," NYPD Commissioner James O'Neill said during a press conference.

Familia was a 12-year veteran of the police department.

The Associated Press contributed to this report.