It is both tradition and law that the ambassador and many embassy officials have diplomatic immunity. They cannot be arrested or prosecuted in the foreign country. The only possibility is to send a person back to their own country.