Five soldiers were killed in a bomb attack in Thailand's southern region.