En politibetjent ble skutt og drept i tjenesten i en lobby på et sykehus i North Carolina, sa myndighetene.