A suspect in a foiled terror attack has told a Ugandan magistrate that those who arrested and detained him sprayed…