Real IRA claims responsibility for gun attack