Ugandan military detains opposition leader