Aidan Smith struck four minutes from time as Queen of the South claimed a point against Rangers at Ibrox on Tuesday.