Hamas ready to fight if Gaza war resumes, official tells AFP