If you kill a non essential NPC, they stay dead, as for a shop keeper, I think but I am not sure, if they have a relative, the relative takes over, and he hates you. For example, I killed the brother of that archery vendor in whiterun, and now he always calls me a scumbag, but if the vendor doesn't have a relative, the shop stays closed forever.