Detective sacked for pretending to work from home