Police shot and killed a knife-wielding man in Brooklyn who authorities said was the suspect of a double murder investigation from over the weekend.

The deadly incident happened on Bay 44th Street, near Harway Avenue in Bath Beach, shortly after 7 a.m. Wednesday, police said.

At a news conference held after the incident, Chief of Patrol John Chell said an NYPD patrol car equipped with license plate reading technology identified a vehicle whose owner was wanted for a double murder that took place in East Flatbush on Sunday.

Chell said the officers rounded the block to verify the license plate before approaching the suspect, Jason Pass, of Brooklyn, who was at that point sitting in his parked car.

When police approached the vehicle, Pass jumped out of the car with a knife in his hand and started running, according to Chell. Police pursued Pass until he reached Bay 44th Street, at which point they waited for backup.

Chell said police had a 15-minute dialogue with Pass, during which they repeatedly demanded he drop the knife.

Eventually, Pass charged at the officers in a “full sprint” while brandishing the knife, at which point police fired four times, striking Pass three times in the chest and once in the leg, Chell said.

Pass was taken to a nearby hospital, where he succumbed to his injuries, police said.

Police previously said Bladimy Mathurin, 47, and Chinwai Mode, 27, were fatally shot in the hallway of their apartment building in East Flatbush around 10:40 p.m. on Sunday.

An NYPD official on Tuesday said the suspect wanted in connection with their deaths was a neighbor who had gotten into a dispute with them over a noise complaint.

Authorities on Wednesday said Pass had one prior arrest — for robbery — before he became a suspect in Sunday’s double murder investigation.

Asked what was said during the exchange between officers and Pass before he allegedly lunged at them with the knife, Chell said Pass said something to the effect of, “This won’t end well.”

An investigation into the incident remains ongoing.