iMac Boot Camp: No bootable device error when installing Windows 7 System: iMac (21.5 inch, Mid 2010)
OS: Yosemite 10.10.5

I used Boot Camp  Assistant to create a bootable USB for a Windows install (I have a Windows 7 ISO image through school) and a partition, but when I try to boot into the partition and I get an error - cannot find any bootable device. It does not recognize the USB as bootable. I tried with USB 2.0 as well as 3.0 with no change.

When I hold down the option key while rebooting, it shows the USB as "EFI Boot" but clicking on it leads to the same error message.

Any idea why this happens/how I can fix it?
You can not use a USB flash drive to install Windows on a 2010 iMac. You need to use a DVD. You can install without a DVD or flash drive, but the procedure is difficult and requires installing third party software.

There are two methods to boot software on your Mac. The older (legacy) method uses the BIOS firmware and the newer method uses the EFI firmware. OS X and many Linux operating systems can be installed to boot using the EFI firmware. Many have attempted to install Windows to boot using the EFI, but doing so in my option is rather pointless. To get all of the device drivers to work properly, you need to install the proper "Boot Camp Support Software". This software assumes you have installed Windows to boot using the BIOS method.

It is my understanding the newer Macs do install Windows to boot using the EFI. All the 2010 models were not designed to do so. Also, the 2010 models were required to install Windows using a DVD. Apple changed the firmware to allow USB Windows installs around 2012, when they stopped putting DVD drives in Macs. To my knowledge no firmware upgrades were ever released to allow USB installs on 2011 or older Macs.

In the case, where you no longer have a working DVD drive, you can still install Windows directly from the ISO file. This requires installing a free copy of VirtualBox. This product can be used to prepare a partition for the installation of Windows. Once Windows is installed, you can remove VirtualBox, but since it requires very little disk space, you are better off just leaving a copy on your Mac.

Instructions to install Windows 7 without DVD (Optical) drive or USB flash drive

The procedure can be found at the link below.

Installing Windows 7 Pro 64 bit without DVD or Flash Drive