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