Observation of a nonmonotonic transverse voltage induced by vortex motion in a superconducting thin film