Harming innocent people is strictly forbidden in Islam. If as a soldier, you are ordered to harm innocent individuals, it becomes your duty to refuse such orders. Following Islamic ethics means protecting the innocent and avoiding all forms of oppression and injustice.