A military spokesman says fighter jets attacked militant camps in the Swat Valley inflicting heavy casualties .