Negative longitudinal resistance in a mesoscopic wire