Coupling end resection with the checkpoint response at DNA double-strand breaks