Anomalous Hall effect induced by a pure longitudinal spin injection