ATHENS—Greeks overwhelmingly voted against their international creditors’ conditions for further bailout aid, in a result that could deepen the rift between Greece and the rest of Europe and push the country closer to bankruptcy and an exit from the euro.