Israel attacked the USS liberty by air and by sea.
https://www.cia.gov/readingroom/docs/DOC_0001359216.pdf
The linked document states that the Liberty was not identified by the Israeli as a US ship.
Is this the only case of friendly fire due to a mistake in your knowledge? I think not since it is a frequent enough occurrence.