The head of a Tokyo pension office who repeatedly tweeted discriminatory remarks against individuals including South Koreans was replaced Monday.