Embassy grounds are considered sovereign soil of the country owning the embassy. This is why U.S. Marines provide embassy security and not thehost country. So, an attack on a U.S. embassy is the same as an attack on the United States, and, the perp(s) could be handed over to the U.S. for prosecution if the attacker were caught and the host government agreed. Generally, though, I think this rarely happens.