The U.S. military has attacked a boat accused of smuggling drugs in the eastern Pacific Ocean, killing three people.