A man planted pipe bombs outside of Dallas' police headquarters early Saturday before opening fire on the building and officers who tried to stop him, spraying the building and a squad car with bullets during a wild street battle but injuring no one.