Critics are blasting CNN anchor Fredricka Whitfield for on-air comments she made about the actions of a man who allegedly opened fire on Dallas police headquarters early Saturday.

According to Mediaite, Whitfield apparently misspoke, calling the gunman's actions "courageous and brave" while talking to CNN legal analyst Philip Holloway about the incident.

>> Click here to watch the video clip

"It was very courageous and brave, if not crazy as well, to open fire on the police headquarters, and now you have this scene, this standoff," Whitfield said. "So you believe these are the hallmarks of more than one person's involvement." Watch the clip here.

The Fort Worth Police Officers Association slammed Whitfield on Twitter. "@CNN & @FWhitfield should apologize immediately for this outlandish commentary in the #DallasPDShooting," the group posted.

The Houston Police Officers' Union also sounded off on social media, writing, "'Courageous and brave' to shoot at police officers with an assault rifle. Get a clue and WAKE UP!"

Mediaite said it contacted CNN for comment but hasn't heard back.

>> RELATED: 5 things to know about the Dallas police shooting

The suspected gunman, identified by police as James Boulware, allegedly planted pipe bombs and opened fire on police headquarters about 12:30 a.m. Saturday. He then drove to a fast-food restaurant's parking lot in an armored-style vehicle outfitted with gun ports on the side.

He reportedly rammed police vehicles, sprayed others with bullets, and shot out the windows and front desk of the police station where a worker on duty had just left to go to a vending machine.

>> Read more trending stories

After an hours-long standoff with officers, the man was shot and killed by a police sniper at 5 a.m.