An Israeli official says Hamas has agreed to a ceasefire and hostage return proposal but Prime Minister Benjamin Netanyahu's office has rejected this.