Classical Yang-Baxter Equation from Supergravity