If the Iranian government has any sense, they'll release a statement apologizing for the detention, but the ambassador was at the scene of a riot, and they took him into custody for his protection and released him as soon as practical.
They don't have that much sense.