Pakistani authorities have ordered an investigation into a video showing the public flogging of a woman.