India and Pakistan's military leaders announced on Thursday they had agreed to stop cross-border firing in Kashmir.