An explosives-laden vehicle has rammed into a mosque near a police facility in northwestern Pakistan, killing at least 15 people and wounding dozens more.