Authorities in Pakistan say a key suspect in connection with a deadly attack at a mosque in a police compound nearly two years ago has been arrested and has been identified as a police officer.