Man charged with attempted murder, armed robbery