Man makes first court appearance in attempted-murder case