Friendly fire incidents are all about mistaken identity. They are accidents. Not relevant to the Liberty incident.
I'm neither a witness nor a military man, though I rely on info from a military historian, a friend of mine. Long story short, Soviet fleet in 1967 was protecting Egypt from the sea and sea approach for fighter jet was assumed impenetrable. Israeli pilots, however, used technique developed by our guys in Nam and flew their jets at about 10+ feet above sea level - below Soviet radars. You must know the history - attack was devastating for Egyptians and it was a bruised ego for Soviets.
So, when Israelis all of a sudden discovered a spy ship right by their noses, they asked US fleet if it was ours. Response was no - no our ships are where Israel says... Israelis assumed that it is either Egyptians or Soviets under US flag trying to prevent the next surprise and bombed the ship. Unfortunately info that it is CIA operation came a bit late for many of our sailors.
You can dislike Israel and you are free to feel that way. However, to insist that Israelis made a deliberate attack on the US ship is quite an way to feed this feeling! For what reason they attacked?? Israelis already had their hands full with Arab states, Soviets were threatening with a direct attack and annihilation - so, attack us to make it a full house??
4 letter word happens in war.... We bombed a few Canadians into oblivion in Afghanistan, for one. Liberty was a tragic mistake.
Have a happy 4th of July.