The dead snake in the photo appears to be a buff striped keel-back at first but the features do not add up to it as you have already pointed out. I believe what you have here is a very rare snake species called Indian egg-eater (common in south Bengal) Elachistodon westermanni. It ranges in both freshwater and mangrove swamps as well.