Ett amerikanskt stridsfartyg i Röda havet har blivit attackerat, uppger nyhetsbyrån AP med hänvisning till Pentagon.