You are by law not allowed to take photos of any border crossings, government buildings and military buildings, the army, police or where your guide advises against it.
Check with your guide or the locals if they approach you. Remember that we are guests in their country and have to respect their local customs and feelings. It is offensive to some cultures to take their picture without asking. You may also be asked to pay a small fee to have the photo taken.