Japan’s defense minister ordered the nation’s naval ships to return from the Indian Ocean on Friday, fulfilling a pledge by his government to end an eight-year refueling mission in support of the war in Afghanistan.