Middle school student Dalton Duncan tells funny joke, gets detention