Until we know the relative location of the bodies, it’s possible the co-pilot was in the washroom or taking an in-flight nap when the pilot decided to end it all.
From the height of the plane, to the ocean, it would only take somebody a few seconds to hit the water.
I believe that the newer planes like the 777 they have made it impossible to open the cabin doors in flight.