How do I make an ore kill someone when they touch it?
Depends on the ore. But assuming we are talking vanilla minecraft:
Redstone ore has the interesting property that is emits a signal when steped on or otherwise interacted with. So you could simply place a command block right next to it and have that execute whoever you want killed.