A martyr is one who is killed for his faith. Only two individuals are specifically named as martyrs in scripture: Stephen and Antipas.
At times, God called people to enter into war with the goal of killing their enemies. The Bible clearly distinguishes between this type of killing and murder.