Exactly solvable relativistic model with the anomalous interaction