Follow CBSMIAMI.COM: Facebook | Twitter

MIAMI (CBSMiami/AP) – A suspect in a child pornography investigation took his own life during a traffic stop near Orlando.

READ MORE: Florida’s Surgeon General Asked To Leave Meeting At State Senator’s Office After Refusing To Wear Mask

Officers stopped the vehicle after recognizing Luis Valentin, 48, as a suspect in the case.

The officers didn’t realize at first that Valentin had his two children — ages 7 and 11 — inside.

READ MORE: Finding This Year’s Most Popular Toys May Be Challenging Because Of Supply Chain Issues

After the children were removed from the vehicle, Valentin grabbed a gun and fatally shot himself.

His ex-wife, Ana Valentin, also was at the scene. She said he “always said that before he would be in jail he would kill himself.”

One of the Kissimmee officers racing to the scene to provide back up suffered minor injuries when his patrol car flipped over.

MORE NEWS: Experts Don't Anticipate National Supply Chain Crisis To End Anytime Soon

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)