Turkey has condemned the deadly terrorist attack on a military parade in Iran that killed at least 24 people and injured many others.