An investigation is underway after a shark found swimming inside Cottesloe Beach’s shark barrier was shot and injured.