10 police, 18 militants killed in Pakistan's northwest