Police in Pakistan also detained two others believed to be involved in the teenagers’ killings.