Characterization of ellipsoids through an overdetermined boundary value problem of Monge-Ampère type