It's probably because you used LMB to cancel the animation. I'm not sure if you can rob the PD, but you can attack a npc police officer and it will count as a robbery being failed (attacking fails your robbery). The range does seem a little bit weird.