NAKASONGOLA, Uganda—Inside one of Uganda’s air bases behind rings of security lurks a resource the nation pledged two years ago to jettison—North Korean soldiers.

The commandos, from North Korea’s special-operations division, are covertly training Uganda’s elite troops in skills from martial arts to helicopter-gunnery operations, say senior Ugandan military officers.

The...