If they were fully clothed and in public, so this was not potentially child pornography or taking a picture of someone in her bedroom or bathroom, etc. without her consent, it is legal: any person may photograph any other person who is in public. If you can see it legally in a public place, you can photograph it. (That's a slight oversimplification, but is essentially true.)