The Pakistani Taliban claimed responsibility for a suicide attack on army personnel that killed at least six people and wounded 18 in the eastern Pakistani city of Lahore on Wednesday.

Punjab government spokesman Malik Ahmed Khan said the blast, which hit an army vehicle taking part in Pakistan's census, killed four soldiers and two civilian bystanders.

Scores of people have been killed since the beginning of the year in a series of attacks that have dashed hopes of an end to the violence of recent years and stepped up pressure on Prime Minister Nawaz Sharif's government to improve security.

TV footage showed security personnel blocking off the street around the site of the explosion, close to an elite police training school which was the site of a Pakistani Taliban attack in 2009.

The apparent targeting of personnel involved in the census, the first in 19 years, underlined the challenge to government institutions in Pakistan, a nuclear-armed state of some 200 million people.

Lahore, Pakistan's second-largest city and capital of the Punjab region, was already on high alert following a bomb attack last month that killed at least 13 people.

Muhammad Khurassani, a spokesman for Tehrik-i-Taliban Pakistan (TTP), a banned Islamist movement often called the Pakistani Taliban, issued a statement claiming responsibility.

The spate of attacks has ratcheted up tensions with neighbouring Afghanistan, which some Pakistani officials accuse of sheltering TTP militants. Afghanistan's government, in its turn, accuses Islamabad of aiding the Afghan Taliban, a charge Pakistan denies.