A group claiming links to al-Qaida has said it fired the rockets at US Navy ships in Jordan and an Israeli port, according to an internet statement.