A ceasefire took hold Thursday in and around Gaza after a week of cross-border violence between Israel and Palestinian militants that killed at least 160 people.