Guilty dog gets caught going through trash