Police in Florida said a sergeant has resigned after she was caught posting nude photos of herself on a website while on duty.