Half-court shot helps Arizona beat No. 3 Iowa State