An NYPD officer was shot in the back while responding to a domestic violence dispute on Christmas Eve, according to police officials. The officer's bulletproof vest likely saved his life.

The 27-year-old officer was responding to 911 calls from a mother fearful that her daughter's boyfriend was going to come to their Crown Heights home and "shoot the place up," just before 9 p.m. Thursday, according to Police Commissioner Dermot Shea, who briefed the press late into the evening.

The officer arrived at the home on Bergen Street near Ralph Avenue, and was interviewing the woman when a man arrived.

Shea said the woman was seen on body camera footage pointing, before shots were fired.

The officer was shot in the back, but the bullet did not strike him due to his bulletproof vest, according to Shea, who added that the vest likely prevented a tragedy.

Two other officers were nearby and fired seven shots at the shooter, who ran off for another block or so. Eventually, the man put his gun on the sidewalk and laid down on the ground. He was taken into custody without any injuries, according to Shea.

"I will thank God that we are not under more dire circumstances," Shea said, calling it a "Christmas miracle."

"The urgency of her voice cannot be understated," he added, referencing the mother's 911 calls.

The officer had a "little pain" but was in "good spirits" and expected to return home overnight early Friday morning, the commissioner said. He had been working for the department for about two-and-a-half years.

"This is a time when you would expect peace. You would expect harmony," Mayor Bill de Blasio said during the press availability. "What happened tonight, a man threatened his girlfriend, threatened her violently, said he was coming to do her harm."

The mayor urged anyone who felt in danger to call the city's domestic violence hotline at 1-800-621-HOPE.

The police department has not yet released the suspect's name, age, or charges.