Turkish military declares takeover of country