Loud assassination: Hold LB + RB and press X. You can do this while running up to a guard and it almost always works from any angle. However it is noisy and causes civilians to run for guards.
Silent assassination: Hold LB and press X. It has less of a chance of working, and works best when used behind guards so no one hears you.