Australia clinch nail-biting win over Pakistan in first ODI