It was a close call early Easter Sunday morning when four NYPD officers were shot during a wild gun battle in a 6th-floor apartment, where an out-of-control, ex-con menaced his pregnant girlfriend and their 4-year-old son.

Three of them were shot in the leg; a bullet grazed the other cop in the face. They were all taken to Lutheran Medical Center. Two officers, who were listed in stable condition, were released Monday.

They've been identified as Capt. Al Pizzano, Detectives Michael Keenan and Kenneth Ayala and Officer Matthew Granahan.

Investigators identify the shooter as Nakwon Foxworth, 33, who was shot three times. He's listed in critical condition at Kings County Medical Center in East Flatbush, according the Mayor Michael Bloomberg and Police Commissioner Raymond Kelly.

Trouble started brewing Saturday around 10:30 p.m. at 3301 Nostrand Ave in Sheepshead Bay.

Police say Foxworth, girlfriend Jessica Hickling and their little boy had just gotten home when, Foxworth got into an argument with a couple of men helping a woman move into a fifth floor apartment.

According to a report in the Daily News, one of the movers said Foxworth lost it and started ramming the stroller into a barrel -- with the little boy inside, which scared Hickling. The mover said the next thing he knew, Foxworth pulled a gun, and opened fire.

Then, the mover said, he reportedly hustled the family into apartment 6K. Meanwhile, the other mover called the cops -- who, along with hostage negotiators -- arrived and began preparing for a long night. That's when the pregnant Hickling, the little boy in her arms, fled the apartment -- informing police Foxworth was armed.

The shootout began when cops entered the living room.

In an Op-Ed piece in the Daily News, Mayor Michael Bloomberg called on Washington lawmakers to stop cowering to the gun lobby and fix laws to help keep illegal guns off the streets.