A convicted teenage murderer held a razor to a prison officer’s face and demanded he hand over his keys.