A state agency has opened an investigation into the conduct of a former Pima County Sheriff’s Department deputy who was fired for engaging in “heavy petting” with a woman while on duty.

The Arizona Peace Officer Standards and Training Board has the ability to suspend or revoke former deputy Anthony Doran’s certification as a police officer.

Doran worked for the Sheriff’s Department for eight years before he was fired in July.

When internal affairs investigators asked Doran about an anonymous complaint, he acknowledged to twice meeting a woman at her home “where they engaged in ‘heavy petting,’ ” an internal affairs report says.

He was on duty, in his uniform and sitting in his patrol car, which was parked in the woman’s driveway, the report says.

“It was a poor decision on my part,” and he knew it was against department rules, Doran told investigators.

Forensic experts checked Doran’s department-issued iPhone and found “many of the text messages contained explicit sexual conversation,” and “many of the photographs were of nude females and males that were erotic in nature,” according to the report.

Some of the text messages and photos were sent or received while on duty.

The iPhone records also showed that Doran discussed the internal affairs investigation with the woman after he was told not to, according to the report.

Doran’s internal affairs file includes eight other citizen complaints and four red-light camera speeding violations. The complaints were deemed unfounded, and the speeding violations were deemed justified because Doran was responding to emergency calls.