Militant attack on a police post in restive northwestern Pakistan leaves 3 officers dead