On an elliptic equation related to the blow-up phenomenon in the nonlinear Schrödinger equation