GAZA CITY, Gaza Strip — Hamas began releasing prisoners yesterday amid scenes of triumph mixed with looting after its dramatic two-day conquest of all security positions previously held by its rival Fatah.