Man charged in attempted armed robbery in Caseyville