The US Military only had problems in Mogudishu because they were crippled by the Klinton administration. To save his image among the raving islamists Klinton would not allow the military to use overwhelming force to accomplish their mission of capturing Mohammed Aidid.
On the fateful Blackhawk Down mission they denied requests for Apache & Spectre heavy gunships and Bradley and Abrams tanks. As a result Delta and the Rangers were outgunned and overwhelmed.