Two-dimensional localized Peregrine solution and breather excited in a variable-coefficient nonlinear Schrödinger equation with partial nonlocality