If it's at the security error, try this for me. Attached your phone to your computer, install the Android SDK Platform Tools, and run this:
fastboot oem unlock
Then reboot, and you should be back at the security error and now run (given you have the Loki-ed TWRP):
fastboot flash recovery...