Kilmarnock's Joe Wright was sent off for a straight red card against Rangers following a goal-line handball.