A Queensland man has faced court on an attempted murder charge after allegedly shooting a teenage girl with a bow and arrow at a supermarket, west of Brisbane.