Militant agrees Khyber peace deal