Miranshah sit-in ends as authorities agree to investigate fatal shooting