Turn off an always on led with transistor
I'm assuming your power supply is 5 volts, not 1 volt. As connected, the NPN transistor will attempt to short-circuit the power supply, which probably won't work. Try 






simulate this circuit &ndash; Schematic created using CircuitLab