The same way you get past guards while teleporting? Guards do not see the teleporting. When you teleport, you're only seen where you were and where you stop.
The assassins were on the roof, the same roof you can walk unseen when you infiltrate the place, and (I assume) are only heard when...