A gunman was killed after shots were fired at UPMC Memorial hospital in York County. No patients were injured in the incident.