After a week of fighting, Hamas gunmen seized the headquarters of the Fatah-controlled National Security Forces in northern Gaza.