A US unmanned aerial vehicle has crashed near a military facility in Somalia, killing five government soldiers.