Police investigate the shooting of a police officer on 183rd Street in the Bronx early Wednesday.

NYPD Officer Miosotis Familia was assassinated in the Bronx early Wednesday.

A police officer was fatally shot in the head while sitting in a police vehicle in the Bronx early Wednesday, according to law enforcement sources. The officer has been identified as 48-year-old mother of three Miosotis Familia.

Alexander Bonds, 34, came up and blasted Familia through the window without warning, sources said.

It seemed to be a deliberate “cop assassination,” one law enforcement source told The Post.

Bonds approached at 12:30 a.m. as Familia sat inside a temporary headquarters vehicle at East 183rd Street and Morris Avenue in Fordham Heights, according to sources.

Cops say Bonds was paroled in 2013 for a robbery in Syracuse after serving nearly seven years of an eight-year sentence. He was set to complete parole in May 2018.

Familia — a 12-year-veteran who was with the Anti-Crime unit of the 46th Precinct — was rushed to St. Barnabas Hospital, where she died during surgery.

“This is absolutely an unprovoked attack,” said NYPD Commissioner James P. O’Neill.

The commissioner said Bonds fired one round, after which the wounded officer’s partner called for backup.

Two other officers, Sgt. Keith Bryan and Officer Joseph Ayala, confronted Bonds about a block away and shot him dead, police said.

A bystander wound up being shot in the stomach, and was in stable condition at St. Barnabas. A silver revolver was found near the dead suspect.

Cops rushing to the scene were warned by radio to keep their patrol vehicle windows closed while responding.

At least five evidence cups covered spent rounds along Morris Avenue between 183rd and 184th streets.

Witness Jay Marzelli, 17, at first thought all the gunfire was fireworks.

“I was in this bodega right here on Crescent, just getting a sandwich and all of a sudden there was all this running and stuff going on and I look out, probably 40, 50, 60 cops screaming, ‘Call a paramedic, clear the block!’”

“It looked like there was a riot going on … two seconds later I hear gunshots: bam, bam … and then the police officer was just laying there in front of the stationary precinct — right here on Crescent and [East 183rd].

“I saw an officer laying there in the ground unconscious in another officer’s arms. Police officers screaming, ‘Get the f—ing paramedics.’”

“It was crazy — just insane. There were police officers everywhere.”

The shooting recalled the assassination of two uniformed officers as they sat in their marked police car on a street in Bedford-Stuyvesant, Brooklyn, in December 2014.

Officers Wenjian Liu and Rafael Ramos — both posthumously promoted to detective — were targeted for their uniforms, officials said at the time.

That shooter, Ismaaiyl Brinsley, 28, had posted anti-police threats on his Instagram three hours before opening fire on the two officers’ vehicle.

Brinsley fled into a nearby subway and shot himself to death on a platform as cops closed in.

Additional reporting by Joe Marino