From what I understand, an illegal immigrant/spy, that is also a diplomat, and has with him/her a diplomatic immunity card, can not be arrested/detained.