The police-detective son of former NYPD Commissioner Bernard Kerik helped fatally shoot the cop-killing suspects in Tuesday’s Jersey City rampage, sources told The Post.

Joseph Kerik, a Newark, NJ, officer and member of a federal task force, was among the officers who rolled down a street in the New Jersey city’s Greenville neighborhood in an armored truck as bullets flew, a well-placed source said.

The police truck smashed into the front of the bodega where the criminals were firing from — then Detective Kerik and two Jersey City cops jumped out and stormed the shop, shooting the suspects dead, said the source and a law enforcement official.

Bernard Kerik told The Post he was “very proud’’ of his son, as well as the two other cops who killed the suspects.

But he said, “First, my thoughts and prayers go to Detective Seals’ family and his coworkers,’’ referring to the Jersey City officer, Joseph Seals, who had been fatally shot in the head by the criminals earlier.

“What happened today demonstrates the dangers involved in policing on a day-to-day basis, and it also shows the dedication and perseverance of police officers all over the country,” Bernard Kerik said.

The former top-cop dad said his son was being treated for bruising.

Bernard Kerik also tweeted in the evening, “At Jersey City Medical Center with my son Joe…he’s okay by Prayers for the Jersey City Police and their fallen officer.”

At least four innocent people died in the mayhem, including Seals. Two other cops were injured.

Bernard Kerik headed the New York City Police Department under Mayor Rudy Giuliani from 2000 to 2001. He later did prison time for felony tax fraud.