There is no widely documented public figure named "Ed Masterson" with a recorded death date outside of historical records concerning the brother of Bat Masterson.
Possibilities:
If you meant Ed Masterson (lawman, brother of Bat): he died April 9, 1878 in Dodge City, Kansas, from wounds sustained in a shootout.
Otherwise, please provide context (era, profession, source) for a precise answer.