On a Monge-Ampère equation arising in geometric optics