I don't know, and the story doesn't say. Whether or not the diplomat had immunity is beside the point. Even if he did, he could have been expelled. But "threats" and "intimidation" covers a lot of ground, some illegal, some not.
The whole problem with this alleged Chinese interference is...