Schools in the area were placed on lockdown.
Following the attack, China asked Pakistan to beef up security at the mission.
The BLA spokesperson blamed China for "exploiting" the nation's "resources".
Prime Minister Imran Khan said Friday's attack would not undermine the Pakistan-China relationship, which he described as "mightier than Himalayas and deeper than Arabian Sea".
Apple holding a 'four-day shopping event' starting Black Friday
Some 46% of products were cheaper than their Black Friday price on at least one day during the six months afterwards. Currys PC World customers were told they could save £10 on a Sony compact camera advertised as £189 on Black Friday.
The attackers stormed the consulate shortly after 9 a.m., during business hours.
Multiple gunmen tried to enter the consulate in the southern port city, but were intercepted by guards at a checkpoint, senior local police official Javaid Alam Odho told AFP.
"A high alert has been issued and more security personnel deployed at Iranian and Afghan consulates in Quetta and other important places", said Quetta police chief Abdul Razzar Cheema.
Local television showed thick black smoke billowing from a building as police counter terrorist teams advanced. Because of the quick response of police and guards, the terrorists couldn't reach the diplomats, he said, adding that the operation has been completed, but a search was still underway to see if there were any other suspects.
One attacker was also killed in the process and a suicide jacket and weapons were recovered from his possession.
Brooklyn rapper 6ix9ine indicted on racketeering charges
Attorney's office with the NYPD, the Bureau of Alcohol, Tobacco, Firearms and Explosives, and Homeland Security Investigations. Hernandez was reportedly arrested in relation to his alleged gang activity, the New York Daily News reports .
Dr Seemi Jamali, a spokeswoman at the Jinnah Hospital, said the bodies of two police officers were brought to the hospital while one of the consulate guards who was wounded, is being treated.
He said they threw a grenade and then opened fire. The discrepancy with the Pakistani officials' reports could not be immediately reconciled.
Meanwhile, at least nine people were killed and 27 wounded when a blast ripped through a marketplace in Pakistan's restive northwestern tribal region on Friday, officials said. "So much so, that my family had to leave our village and move to a nearby town", she told the daily.
Three to four attackers were involved in the assault, according to journalist Amir Latif, from Turkey's Anadolu News Agency. He blamed the "enemy of Pakistan" for the attack.
The Balochistan Liberation Army (BLA) insurgent group claimed responsibility for the attack. The two states have engaged in several major investment projects.
New Violation of Israel-Hamas Ceasefire Deal
Netanyahu may very well still feel pressure from his right flank next time there is an escalation in Gaza or on other fronts. Some citizens of Israel have also been publicly vocal about their disappointment in the prime minister's decisions.