A man has been charged after a police officer and a man were allegedly shot during a “struggle” in Brisbane’s south.