Teensy can only be reprogrammed by the USB port, so there's no reasonable way to do this using only an XBee which is based on serial.