Hamas govt: Gaza militants agree to cease fire