JERUSALEM — Former President Moshe Katsav of Israel was convicted of two counts of rape by a Tel Aviv court on Thursday, capping a four-year spectacle that began with accusations of sexual misconduct against him while he was still in office.