Turkish police have detained the man, who took out a shotgun he hid in his coat and fired about eight rounds into the air before the embassy’s security guards intervened and apparently overpowered him.