Light-activated drug confirms a mechanism of ion channel blockade