Man killed while repairing truck