Police detains civil judge over rape allegation in Lower Dir