Ahead of attack that killed three US sailors and injured eight other people, shooter Mohammed Alshamrani shared anti-American and anti-Israeli messages on social media