Attacks have broken out in communities across the country, leaving officials in law enforcement and government scrambling to confront the ripple effects of recent violence between Israel and Hamas.