The attacks took place near Bajaur where there has been heavy fighting between the military and militants since August .