I recall reading an article in Analog (a science fiction magazine) about 20 years ago or so, and the laws that protect human life and human rights are specifically written for human beings, so it would be legal to kill an alien (barring some animal cruelty laws that might apply).