The girl was taking photos for her husband, but things took an unexpected turn