But it is a violation of international law to prevent a traveler from contacting his embassy.
I believe US convictions of UK citizens have been overturned for law enforcement's failure to contact UK consuls on their behalf - let alone denying them access.
Technically, I think that since he hadn't officially entered the country there was so such requirement.