Soldiers in Myanmar have confirmed killing at least four people during their search for hundreds of men accused of attacking security forces.