Indonesia has condemned the arrest of the wife of one of its diplomats in Malaysia who was accused of being an illegal migrant.