A senior justice ministry official has been impeached after being accused of working with local gangs to sell seized drugs.