A gunman and a responding officer were killed after shots were fired Saturday at a hospital in central Pennsylvania.