A UPMC official says the gunman was killed after shots were fired at the York County hospital on Saturday morning.