Former president Pedro Castillo was impeached by Congress on Tuesday and later arrested on suspicion of rebellion.