Suppose you find yourself in a situation in which killing an innocent person is

Suppose you find yourself in a situation in which killing an innocent person is the only way to prevent many innocent people from dying. What’s the right thing to do?