I think it could have been a hijacking attempt that went wrong.
I haven’t seen anything to support that theory. Someone would have had to have gotten into the cockpit somehow, and then somehow the plane got taken off autopilot and did a controlled descent.
How do we know it was a pilot banging on the door? Is it possible a FA or passenger, noting the plane descending, was attempting to see if there was a problem in the cockpit.