The former Brazilian president was taken to hospital with abdominal pain, accompanied by military police.