Militants stormed a security checkpoint in Pakistan's northwest near the Afghan border, killing six soldiers, three police and security sources said on Tuesday.