You're likely describing The Crazies (1973), directed by George A. Romero.
A mysterious biological agent ("Trixie") contaminates a small Pennsylvania town's water supply, turning residents into violent, irrational maniacs. The military quarantines the area. The climax features a nurse (Lynn Lowry) brutally killed by the infected townspeople. While other '70s horror films feature asylums (Don't Look in the Basement, The Forgotten), The Crazies best matches the "inmates kill nurse at the end" detail within a pandemic/breakdown narrative.