Dozens killed as militants attack Rawalpindi mosque