Diplomatic immunity does not work like that, however since it is also a different country from mine and cus of politics, take this with a grain of salt.
Diplomats may be declared persona non grata and expelled, although not prosecuted. A foreign official's home country may waive immunity and...