At least 11 police officers have been killed during an ambush by armed attackers in eastern Pakistan, according to local officials.