A middle-aged woman with a history of diabetes mellitus presents with high fever, renal colic, hematuria for 3 days, urinary protein (++), glycosuria (+++), and urine sediment showing abundant white blood cells (WBCs), pus cells, and necrotic renal papillary tissue. The most likely diagnosis is: