Ex-Buffalo teacher who raped boy is captured in Chicago