ABC13 learned a veteran Pasadena police officer, who took his own life in a church parking lot, found out he was under investigation for invasive visual recording that same morning.

According to Pearland police, someone filed a complaint against 46-year-old Kerry Heiserman on Jan. 6.

Heiserman was an officer with the Pasadena Police Department for 21 years. The reason Pearland police were investigating is because the accusation occurred in their jurisdiction.

The case was assigned to an investigator on Monday, and just hours after the investigator tried to contact Heiserman, he died by suicide, according to police.