A Brooklyn dad angry over a bunch of teen hoodlums hanging out on his stoop and terrorizing his quiet block snapped — opening fire on them with a military-style assault rifle, wounding two and a resident, cops said yesterday.

“There were kids on bikes all over the place — then I heard pop! pop! pop!” said one neighbor on Stuart Street in Marine Park. “I looked out my window, and [a] kid was laying there in the street.”

The gang of menacing young thugs began prowling the block around 11:30 p.m. Saturday, knocking over trash, vandalizing cars and lounging on the steps of homes, residents said.

Thomas Dunikowski, 30, was among those who confronted the teens, to no avail.

He then stormed back into his house, grabbed his unlicensed Bushmaster 5.56 mm, and started blasting from a second-floor window, cops said.

Dunikowski, who lives with his wife and baby son, then stashed the gun on the roof and climbed into bed naked, pretending he was asleep, police sources said.

When cops arrived, Dunikowski’s wife at first told them he was not involved. But she eventually gave him up when they said her 2-year-old could be taken away if she covered up a crime, the sources said.

Dunikowski shot one unidentified teen in the neck. The youth was hospitalized in stable condition. A second teen was treated for bullet fragments in his arm and leg.

A neighbor, Yana Kaprovskaya, 21, was struck in the knee by a fragment.

Dunikowski was charged with assault with intent to cause serious injury with a weapon, criminal possession of a weapon, reckless endangerment and resisting arrest.

john.doyle@nypost.com

