An IT engineer has been ordered to tear down a £180,000 bungalow he built in his back garden without planning permission.