VIDEO: CA Deputies Critically Wounded in Courthouse Shooting

The Fresno County Sheriff's Department has confirmed that two officers were shot Saturday morning during an attack by a convicted rapist at the Fresno County jail in Downtown Fresno.

Authorities said Thong Vang, 37, of Fresno shot Correctional Officers Juanita Davila and Toamalama Scanlan around 8:30 a.m. They said Vang entered the jail and made his way to the front of the line and stated he wanted to see someone at the jail.

Fresno County Sheriff Margaret Mims said Vang acted erratically when confronted by staff and did not cooperate with officers. Mims said there were about 15 people in the public area of the jail when Davila confronted Vang before he pulled out a gun and started shooting at officers, striking Davila. Scanlan responded after calls for help were made and he was hit.

Vang then exchanged fire with a jail lieutenant but no one was hit, authorities said, and Vang retreated to a hallway before surrendering to officers and was arrested.

Scanlan and Davila were rushed to Community Regional Medical Center after both were shot in the head and neck area. Authorities said Davila is in critical but stable condition, while Scanlan is in critical condition and undergoing surgery.

Authorities told ABC30 Vang served a 16-year prison sentence after being convicted of raping three minors ranging in age from 12 to 14. Vang was released in 2014 and has no criminal history since then.