Turkey is building up its military presence in Qatar, an adviser to President Recep Tayyip Erdogan said, in defiance of a Saudi-led bloc’s demand that the Turkish military pull out of the emirate.