The troops were preparing to encircle a hut where suspected militant Ahamud Luebeasa was believed to be hiding out.
The gunfight lasted more than half an hour, but no casualties were reported.
Two of the suspects escaped but two were caught and dispatched to a military base for interrogation.
The deep South has been plagued by separatist unrest for more than a decade.