Two police officers were shot in Ferguson early Thursday morning as a rally that began as a celebration of the police chief's resignation gave way to violence and gunfire.