emir: an independent ruler or chieftain (especially in Africa or Arabia)
ruler: a person who rules or commands
military officer: any person in the armed services who holds a position of authority or command