Thousands attend funeral of slain militants in Tral