cut the 2x4 1/4" larger and force it between the studs, then the screws from the bracket would hold it in position. this is all prefaced by being able to reach the spot with your arm. if need be, cut shorter than the stud size, fashion a hook out of wood to hold the stud, then release the hook after the bracket holds the piece of wood in position.
dan