Uganda army apologizes for beating journalists