The interior minister said a dozen people have been killed in a suicide attack outside a district court in the Pakistani capital.