Thailand has confirmed the deaths of three crew members from a vessel attacked in the Strait of Hormuz, highlighting ongoing maritime security issues.