Teen charged in slaying at motel