Hamas said it is willing to release US-Israeli hostage Edan Alexander and the bodies of four dual nationals held in Gaza.