Cops at the scene of the shooting in the Bronx.

A desperate Bronx man with the coronavirus called 911 on himself — then threatened cops with an antique gun and a ketchup-covered knife in a failed police-assisted suicide attempt, police sources said.

Ricardo Cardona, 55 — vulnerable to the fatal pandemic because he is overweight and a diabetic — donned a suit and tie before calling 911 around 4 a.m. Wednesday and reporting a man with a knife in his Westchester Square lobby, sources said.

When officers arrived, they found Cardona holding the ketchup-covered blade and black antique gun, according to officials.

“Drop the knife! Drop the gun! don’t move!” the officers yelled at the scene, according to a police spokesperson.

Cardona ignored the orders and threatened them with the two weapons, police sources said.

The two officers then opened fire, squeezing off nine rounds and striking Cardona four times — hitting him in the back and hip, according to cops.

After the near-fatal encounter, Cardona was rushed to a nearby hospital, where he told first responders that he had tested positive for the virus on Tuesday, authorities said.

He feared he was going to die because of his pre-existing health conditions, according to sources.

Cardona was being treated for his injuries at Jacobi Hospital and was in stable condition Wednesday. The cops who opened fire were unharmed.

Charges against Cardona were pending Wednesday evening. The knife and a “black powder firearm” were recovered at the scene, cops said.

The officers, as well as the paramedics, were in “very close contact” with Cardona, according to the NYPD spokesperson.

“Obviously now everybody’s got to deal with the issue of what he said,” the spokesman said, referring to Cardona’s claims he was infected. “I imagine all of them will be observed, and I don’t know that there’ll be tested because obviously there are no symptoms, right at this time.”

Additional reporting by Craig McCarthy and Ben Feuerherd