Residue formula for regular symmetry breaking operators