A man accused of an anti-Israel vandalism spree researched the location of a Jewish hospital before the attack, police say.