Peru convicts commander of killing