A vehicle loaded with explosives attacked a mosque in Pakistan, killing at least 16 people.