Authorities have deployed troops and imposed a curfew in Parachinar to try to control the violence.