Afghan police beat, detain journalists during election