usually the home country is in charge of external security and the marines are in the embassy.
Consulate or embassy, they really should have more distance between them and whatever potential “incoming”, with nothing adjacent other than buildings somehow related to their own.