Two militants killed in NW Pakistan bomb explosion