Muslim terrorists have been blamed for Monday's attack on the U.S. consulate in Pakistan. The Pakistani Taliban called the media to take credit for the attack.
The militants tried to get into the compound by setting off car bombs at checkpoints, then firing rocket propelled grenades at the building.
"I think they could not manage to get inside," provincial Senior Minister Bashir Ahmad Bilour told reporters outside the consulate.
No Americans died in the attack. But two Pakistani security guards and a civilian were killed.
"Personnel at the U.S. Consulate in Peshawar are at the forefront of U.S. support for the Government of Pakistan's security and development agenda in FATA and NWFP," a statement by the U.S. embassy in Islamabad said, referring to the Pakistani tribal areas and its Northwest Frontier Province.
"The U.S. is grateful for the support of Pakistan's security forces in Peshawar, who responded quickly to this attack in support of the U.S. consulate."
Four militants were also killed during the attack and three other people were wounded, said police officer Sattar Khan.
The White House condemned the attacks and said this is the latest example of Muslim extremists in pakistan going after their own people.