Quetta Gladiators beat Peshawar in last-ball thriller