The US Navy has announced that a new laser weapon it tested earlier this year was a success, and has released footage of the machine in action.