Pakistan hold nerve for T20 win