Man sentenced after attempting to kill dogs