A New York man who threatened to 'shoot up a synagogue' gets sentenced to 10 years