A mean-field model with discontinuous coefficients for neurons with spatial interaction