Gunmen kill 7 police in northwest Pakistan