A police officer was killed Saturday after responding to a shooting at a central Pennsylvania hospital, officials said.