Man tries to help inmate escape jail