Method for producing ruthenium complex