Hamas says it will help close border with Egypt