Former Shelton resident dies during triathlon