Elliptic gradient estimates and Liouville theorems for a weighted nonlinear parabolic equation