The Mozambican army has condemned the apparent execution of a naked woman by men wearing military uniforms.