Scientists pin down the origins of a fast radio burst