BEIJING — China said Thursday that it planned to establish a military facility in Djibouti, a strategically important country on the Horn of Africa, which would apparently be the first permanent presence overseas for China’s military and a sign of the growing reach of its navy. Announcing that China was in talks to build what it called a “logistical facility” in Djibouti, the Foreign Ministry said that the installation would serve to resupply Chinese navy ships that had been participating in United Nations antipiracy missions in the Gulf of Aden since 2008. Strategically, Djibouti offers an excellent place from which to protect oil imports from the Middle East that traverse the Indian Ocean on their way to China, military experts say.